Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

Standard Lib
[C Runtime Library.]

Collaboration diagram for Standard Lib:


Detailed Description

C Standard Library.


Functions

int abs (int j)
int atoi (const char *str)
 Convert string to integer.
long atol (const char *str)
 Convert string to long integer.
void * calloc (size_t num, size_t size)
 Allocate space for an array.
long labs (long j)
 Get absolute value of a long integer.
long strtol (const char *nptr, char **endptr, int base)
 Convert a string to long integer.
unsigned long strtoul (const char *nptr, char **endptr, int base)
 Convert a string to an unsigned long integer.


Function Documentation

int abs int  j  ) 
 

Parameters:
j 
Returns:

int atoi const char *  str  ) 
 

Convert string to integer.

Parameters:
str Pointer to the string.
Returns:
Converted value.

long atol const char *  str  ) 
 

Convert string to long integer.

Parameters:
str Pointer to the string.
Returns:
Converted value.

void* calloc size_t  num,
size_t  size
 

Allocate space for an array.

Parameters:
num Number of elements.
size Size of a single element.
Returns:
A pointer to the allocated space or a null pointer if not enough memory space is available.

long labs long  j  ) 
 

Get absolute value of a long integer.

Parameters:
j Long integer.
Returns:
Absolute value.

long strtol const char *  nptr,
char **  endptr,
int  base
 

Convert a string to long integer.

Parameters:
nptr Points to a character string to convert.
endptr Is a result parameter that, if not NULL, returns a string beginning with the first character not converted.
base Number base of the string.
Returns:
Converted value.

unsigned long strtoul const char *  nptr,
char **  endptr,
int  base
 

Convert a string to an unsigned long integer.

Parameters:
nptr Points to a character string to convert.
endptr Is a result parameter that, if not NULL, returns a string beginning with the first character not converted.
base Number base of the string.
Returns:
Converted value.


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/