12 lines
385 B
Plaintext
12 lines
385 B
Plaintext
Assignment name : ft_itoa
|
|
Expected files : ft_itoa.c
|
|
Allowed functions: malloc
|
|
--------------------------------------------------------------------------------
|
|
|
|
Write a function that takes an int and converts it to a null-terminated string.
|
|
The function returns the result in a char array that you must allocate.
|
|
|
|
Your function must be declared as follows:
|
|
|
|
char *ft_itoa(int nbr);
|