diff options
| author | Cabergs Charles <cacharle@e-r6-p7.s19.be> | 2019-07-16 12:58:13 +0200 |
|---|---|---|
| committer | Cabergs Charles <cacharle@e-r6-p7.s19.be> | 2019-07-16 12:58:13 +0200 |
| commit | 66635d69fa00e335a091d7e6f2b358cbaaf205e4 (patch) | |
| tree | 3ecf5a41b4541980ba0287a431681cd5ae25ad84 /exam00/subjects/5-0-ft_atoi | |
| parent | 11114fd684250943de56c4f73ab45c97f2aaf83a (diff) | |
| download | piscine-66635d69fa00e335a091d7e6f2b358cbaaf205e4.tar.gz piscine-66635d69fa00e335a091d7e6f2b358cbaaf205e4.tar.bz2 piscine-66635d69fa00e335a091d7e6f2b358cbaaf205e4.zip | |
c09 passed, c10 start, exam00 and exam01
Diffstat (limited to 'exam00/subjects/5-0-ft_atoi')
| -rw-r--r-- | exam00/subjects/5-0-ft_atoi/subject.en.txt | 13 | ||||
| -rw-r--r-- | exam00/subjects/5-0-ft_atoi/subject.fr.txt | 12 |
2 files changed, 25 insertions, 0 deletions
diff --git a/exam00/subjects/5-0-ft_atoi/subject.en.txt b/exam00/subjects/5-0-ft_atoi/subject.en.txt new file mode 100644 index 0000000..ebfe92b --- /dev/null +++ b/exam00/subjects/5-0-ft_atoi/subject.en.txt @@ -0,0 +1,13 @@ +Assignment name : ft_atoi +Expected files : ft_atoi.c +Allowed functions: None +-------------------------------------------------------------------------------- + +Write a function that converts the string argument str to an integer (type int) +and returns it. + +It works much like the standard atoi(const char *str) function, see the man. + +Your function must be declared as follows: + +int ft_atoi(const char *str); diff --git a/exam00/subjects/5-0-ft_atoi/subject.fr.txt b/exam00/subjects/5-0-ft_atoi/subject.fr.txt new file mode 100644 index 0000000..2c9977c --- /dev/null +++ b/exam00/subjects/5-0-ft_atoi/subject.fr.txt @@ -0,0 +1,12 @@ +Assignment name : ft_atoi +Expected files : ft_atoi.c +Allowed functions: None +-------------------------------------------------------------------------------- + +Écrire une fonction qui convertit une chaîne en un entier (type int) et le retourne. + +Marche comme la fonction standard atoi(const char *str), voir le man. + +La fonction doit être prototypée comme suit: + +int ft_atoi(const char *str); |
