Libft
 
Loading...
Searching...
No Matches
Basic functions

Basics functions. More...

Functions

int ft_atoi (const char *nptr)
 Convert string to int, and handle number.
 
int ft_atoi_base (char *str, char *base)
 Atoi with a particular base.
 
char * ft_itoa (int n)
 Return a string representing the integer 'n' received as argument.
 

Detailed Description

Basics functions.

Function Documentation

◆ ft_atoi()

int ft_atoi ( const char * nptr)

Convert string to int, and handle number.

Parameters
nptrstring to convert
Returns
int number

◆ ft_atoi_base()

int ft_atoi_base ( char * str,
char * base )

Atoi with a particular base.

Parameters
strString to convert
baseBase to use for conversion
Returns
int converted number
Here is the call graph for this function:

◆ ft_itoa()

char * ft_itoa ( int n)

Return a string representing the integer 'n' received as argument.

Parameters
ninteger to convert
Returns
char* string representing the integer 'n'
Here is the call graph for this function: