Main Page | Data Structures | File List | Globals

stdlib/stdlib.h File Reference

Standard library. More...

#include <stddef.h>
#include <string.h>

Defines

#define RAND_MAX   ((1<<32)-1)

Functions

void * malloc (size_t size)
void * calloc (size_t nmemb, size_t size)
void free (void *ptr)
unsigned long rand ()
void srand (unsigned long seed)


Detailed Description

Standard library.


Define Documentation

#define RAND_MAX   ((1<<32)-1)
 

The maximal pseudo-random number generated


Function Documentation

void* calloc size_t  nmemb,
size_t  size
 

Allocate an array of nmemb objects whose sizeof is size. The array is cleared. The returned address is aligned on a phrase in memory.

void free void *  ptr  ) 
 

Free a previously allocated buffer with malloc or calloc. The given address must be a valid one.

void* malloc size_t  size  ) 
 

Memory allocation. It returns the address of a buffer which is phrase aligned in memory.

unsigned long rand  ) 
 

Returns a new pseudo-random number

void srand unsigned long  seed  ) 
 

Initialises the pseudo-random numbers generator with the given seed


Generated on Tue Dec 5 18:32:03 2006 for Jaguar C library by  doxygen 1.4.4