Srand, Sscanf, Srand sscanf – Zilog ZUSBOPTS User Manual
Page 470: Synopsis, Returns, Example

Standard Functions
UM017105-0511
442
Zilog Developer Studio II – ZNEO™
User Manual
Synopsis
#include
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
void srand(unsigned int seed);
Example
int i;
srand(1001);
i=rand();
sscanf
Reads formatted data from a string.
Synopsis
#include
int sscanf(const char *s, const char *format, ...);