armOS  0.1.0
Minimal ARM Operating System for the Raspberry Pi - Documentation generated for Pi 4.
stdlib

Small subset of stdlib.h. More...

Collaboration diagram for stdlib:

Files

file  stdlib.c
 Implementation of some stdlib.h functions.
 
file  stdlib.h
 Definition of some stdlib.h functions.
 

Functions

char * itoa (int value)
 
int atoi (const char *str)
 

Detailed Description

Small subset of stdlib.h.

Function Documentation

◆ atoi()

int atoi ( const char *  str)

Converts a string to an int

Parameters
strThis is the string representation of an integral number.
Returns
The converted integral number as an int value. If no valid conversion could be performed, it returns zero.

◆ itoa()

char* itoa ( int  value)

Converts an int (Only base 10 supported for now) to a null-terminated string using the specified base.

Parameters
valueValue to be converted to a string.
Returns
A pointer to the resulting null-terminated string.