diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-07-26 23:17:36 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-07-26 23:17:36 +0200 |
| commit | 264ae2f047a53ffac92271e4609038d17605738e (patch) | |
| tree | 480c68814f822439850029df0e0249a2cafb8177 /exam_final/subjects/7-0-ft_itoa | |
| parent | ad9867052d496f2c2a7f120a512208fb4dd4e787 (diff) | |
| download | piscine-264ae2f047a53ffac92271e4609038d17605738e.tar.gz piscine-264ae2f047a53ffac92271e4609038d17605738e.tar.bz2 piscine-264ae2f047a53ffac92271e4609038d17605738e.zip | |
exam final
Diffstat (limited to 'exam_final/subjects/7-0-ft_itoa')
| -rw-r--r-- | exam_final/subjects/7-0-ft_itoa/subject.en.txt | 11 | ||||
| -rw-r--r-- | exam_final/subjects/7-0-ft_itoa/subject.fr.txt | 12 |
2 files changed, 23 insertions, 0 deletions
diff --git a/exam_final/subjects/7-0-ft_itoa/subject.en.txt b/exam_final/subjects/7-0-ft_itoa/subject.en.txt new file mode 100644 index 0000000..54bf901 --- /dev/null +++ b/exam_final/subjects/7-0-ft_itoa/subject.en.txt @@ -0,0 +1,11 @@ +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); diff --git a/exam_final/subjects/7-0-ft_itoa/subject.fr.txt b/exam_final/subjects/7-0-ft_itoa/subject.fr.txt new file mode 100644 index 0000000..6acf5df --- /dev/null +++ b/exam_final/subjects/7-0-ft_itoa/subject.fr.txt @@ -0,0 +1,12 @@ +Assignment name : ft_itoa +Expected files : ft_itoa.c +Allowed functions: malloc +-------------------------------------------------------------------------------- + +Écrire une fonction qui prend un int et le convertit en chaîne terminée par un +caractère nul. Cette fonction retourne le résultat en tant qu'un tableau de +char que vous devez allouer. + +Votre fonction sera déclarée comme suit: + +char *ft_itoa(int nbr); |
