Provides a subset of the standard C library for Xinu.
More...
Functions |
int | abs (int) |
int | atoi (char *) |
long | atol (char *) |
void | bzero (void *, int) |
ulong | rand (void) |
void | srand (unsigned long) |
Detailed Description
Provides a subset of the standard C library for Xinu.
Function Documentation
Calculates the absolute value of a number.
- Parameters:
-
arg | number to get absolute value of |
- Returns:
- absolute value of arg
Converts an ascii value to an integer.
- Parameters:
-
*p | pointer to ascii string |
- Returns:
- integer
Converts an ascii value to a long.
- Parameters:
-
*p | pointer to ascii string |
- Returns:
- long
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 |
Generates a random long.
- Returns:
- random long
void srand |
( |
unsigned long |
x | ) |
|
Sets the random seed.
- Parameters:
-