Zilog ZUSBOPTS Manual de usuario Pagina 470

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 520
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 469
Standard Functions UM017105-0511
442
Zilog Developer Studio II – ZNEO™
User Manual
Synopsis
#include <math.h>
double sqrt(double x);
float sqrtf(float x);
Returns
The value of the square root.
Example
double x=25.0;
double y;
y=sqrt(x);
srand
Uses the argument as a seed for a new sequence of pseudorandom numbers to be returned
by subsequent calls to
rand. If srand is then called with the same seed value, the
sequence of pseudorandom numbers is repeated. If
rand is called before any calls to
srand have been made, the same sequence is generated as when srand is first called with
a seed value of 1.
Synopsis
#include <stdlib.h>
void srand(unsigned int seed);
Example
int i;
srand(1001);
i=rand();
sscanf
Reads formatted data from a string.
Synopsis
#include <stdio.h>
int sscanf(const char *s, const char *format, ...);
Vista de pagina 469
1 2 ... 465 466 467 468 469 470 471 472 473 474 475 ... 519 520

Comentarios a estos manuales

Sin comentarios