mikroElektronika PIC Microcontrollers PIC12 User Manual page 302

Mikroc user's manual
Table of Contents

Advertisement

mikroC - C Compiler for Microchip PIC microcontrollers
rand
Prototype
int rand(void);
Description
Function returns a sequence of pseudo-random numbers between 0 and 32767. Function
will always produce the same sequence of numbers unless
starting point.
srand
Prototype
void srand(unsigned seed);
Description
Function uses the seed as a starting point for a new sequence of pseudo-random num-
bers to be returned by subsequent calls to
tion.
xtoi
Prototype
int xtoi(char *s);
Description
Function converts the input string
value. Input parametes
optional whitespace and a sign at the beginning. The string will be processed one char-
acter at a time, until the function reaches a character which it doesn't recognize (this
includes a null character).
page
294
rand()
consisting of hexadecimal digits into an integer
s
should consist exclusively of hexadecimal digits, with an
s
MikroElektronika: Development tools - Books - Compilers
is called to seed the
srand()
. No values are returned by this func-
mikroC
making it simple...

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?

This manual is also suitable for:

Pic microcontrollers pic16Pic microcontrollers pic18

Table of Contents