|
Libft
42 Libft library documentation
|
#include <stdlib.h>
Include dependency graph for ft_itoa.c:Go to the source code of this file.
Functions | |
| char * | ft_itoa (int n) |
| Converts an integer to a newly allocated decimal string. | |
| static size_t | ft_num_len (int n) |
| Computes the number of characters needed for an int string. | |
| char * ft_itoa | ( | int | n | ) |
Converts an integer to a newly allocated decimal string.
| n | Integer value to convert. |
Definition at line 23 of file ft_itoa.c.
References ft_num_len().
Here is the call graph for this function:
|
static |
Computes the number of characters needed for an int string.
Includes one extra character for a sign or for the value zero.
| n | Integer value. |
Definition at line 59 of file ft_itoa.c.
Referenced by ft_itoa().
Here is the caller graph for this function: