Zilog ZUSBOPTS Manual do Utilizador Página 457

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 456
UM017105-0511 Standard Functions
Zilog Developer Studio II – ZNEO™
User Manual
429
Synopsis
#include <string.h>
void *memset(void *s, int c, size_t n);
Returns
The value of s.
Example
char str[20];
char c='a';
memset(str, c, 10*sizeof(char));
modf, modff
Breaks the argument value into integral and fractional parts, each of which has the same
sign as the argument. It stores the integral part as a
double (modf) or float (modff) in
the object pointed to by iptr.
Synopsis
#include <math.h>
double modf(double value, double *iptr);
float modff(float value, float *iptr);
Returns
The signed fractional part of value.
Example
double x=1.235;
double f;
double i;
i=modf(x, &f);
pow, powf
Computes the x raised to the power of y. A domain error occurs if x is zero and y is less
than or equal to zero, or if x is negative and y is not an integer. A range error can occur.
Synopsis
#include <math.h>
double pow(double x, double y);
float powf(float x, float y);
Vista de página 456
1 2 ... 452 453 454 455 456 457 458 459 460 461 462 ... 519 520

Comentários a estes Manuais

Sem comentários