aboutsummaryrefslogtreecommitdiff
path: root/exam_final/subjects/6-0-ft_atoi
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-07-26 23:17:36 +0200
committerCharles <sircharlesaze@gmail.com>2019-07-26 23:17:36 +0200
commit264ae2f047a53ffac92271e4609038d17605738e (patch)
tree480c68814f822439850029df0e0249a2cafb8177 /exam_final/subjects/6-0-ft_atoi
parentad9867052d496f2c2a7f120a512208fb4dd4e787 (diff)
downloadpiscine-264ae2f047a53ffac92271e4609038d17605738e.tar.gz
piscine-264ae2f047a53ffac92271e4609038d17605738e.tar.bz2
piscine-264ae2f047a53ffac92271e4609038d17605738e.zip
exam final
Diffstat (limited to 'exam_final/subjects/6-0-ft_atoi')
-rw-r--r--exam_final/subjects/6-0-ft_atoi/subject.en.txt13
-rw-r--r--exam_final/subjects/6-0-ft_atoi/subject.fr.txt12
2 files changed, 25 insertions, 0 deletions
diff --git a/exam_final/subjects/6-0-ft_atoi/subject.en.txt b/exam_final/subjects/6-0-ft_atoi/subject.en.txt
new file mode 100644
index 0000000..ebfe92b
--- /dev/null
+++ b/exam_final/subjects/6-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/exam_final/subjects/6-0-ft_atoi/subject.fr.txt b/exam_final/subjects/6-0-ft_atoi/subject.fr.txt
new file mode 100644
index 0000000..2c9977c
--- /dev/null
+++ b/exam_final/subjects/6-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);