Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/include/stdlib.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int abs (int)
int atoi (char *)
long atol (char *)
void bzero (void *, int)
void qsort (char *, unsigned, int, int(*)(void))
ulong rand (void)
void srand (unsigned long)


Detailed Description

Id
stdlib.h 227 2007-07-12 01:23:06Z mschul

Definition in file stdlib.h.


Function Documentation

int abs ( int  arg  ) 

Calculates the absolute value of a number.

Parameters:
arg number to get absolute value of
Returns:
absolute value of arg

Definition at line 14 of file abs.c.

int atoi ( char *  p  ) 

Converts an ascii value to an integer.

Parameters:
*p pointer to ascii string
Returns:
integer

Definition at line 14 of file atoi.c.

long atol ( char *  p  ) 

Converts an ascii value to a long.

Parameters:
*p pointer to ascii string
Returns:
long

Definition at line 14 of file atol.c.

Referenced by xsh_kill(), xsh_sleep(), xsh_testsuite(), and xsh_uartstat().

void bzero ( void *  p,
int  len 
)

Clears a block of characters to 0s

Parameters:
*p pointer to start of block
len length of the block

Definition at line 14 of file bzero.c.

Referenced by ttyClose(), ttyInit(), and uartInit().

void qsort ( char *  ,
unsigned  ,
int  ,
int(*)(void)   
)

ulong rand ( void   ) 

Generates a random long.

Returns:
random long

Definition at line 24 of file rand.c.

References randx.

void srand ( unsigned long  x  ) 

Sets the random seed.

Parameters:
x random seed

Definition at line 15 of file rand.c.

References randx.


Generated on Thu Oct 9 22:34:43 2008 for xinu by  doxygen 1.5.5