MentOS  0.8.0
The Mentoring Operating System
Functions
stdio.c File Reference

Standard IO functions. More...

Functions

int atoi (const char *str)
 Convert the given string to an integer. More...
 
long strtol (const char *str, char **endptr, int base)
 Converts the initial part of str to a long int value according to the given base, which. More...
 

Detailed Description

Standard IO functions.

Function Documentation

◆ atoi()

int atoi ( const char *  str)

Convert the given string to an integer.

Parameters
strThe string to convert.
Returns
The integer contained inside the string.

◆ strtol()

long strtol ( const char *  str,
char **  endptr,
int  base 
)

Converts the initial part of str to a long int value according to the given base, which.

Parameters
strThis is the string containing the integral number.
endptrSet to the character after the numerical value.
baseThe base must be between 2 and 36 inclusive, or special 0.
Returns
Integral number as a long int value, else zero value is returned.