aboutsummaryrefslogtreecommitdiff
path: root/exam00/subjects
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-07-16 12:58:13 +0200
committerCharles <sircharlesaze@gmail.com>2019-07-16 12:58:13 +0200
commit14914f50c3de6c5444e13cf67db064b03c1c90ef (patch)
tree3ecf5a41b4541980ba0287a431681cd5ae25ad84 /exam00/subjects
parent217bcb0d4e3ba60604921cb40d5a11a64f93cfc7 (diff)
downloadpiscine-14914f50c3de6c5444e13cf67db064b03c1c90ef.tar.gz
piscine-14914f50c3de6c5444e13cf67db064b03c1c90ef.tar.bz2
piscine-14914f50c3de6c5444e13cf67db064b03c1c90ef.zip
c09 passed, c10 start, exam00 and exam01
Diffstat (limited to 'exam00/subjects')
-rw-r--r--exam00/subjects/0-0-only_z/subject.en.txt6
-rw-r--r--exam00/subjects/0-0-only_z/subject.fr.txt6
-rw-r--r--exam00/subjects/1-0-ft_countdown/subject.en.txt12
-rw-r--r--exam00/subjects/1-0-ft_countdown/subject.fr.txt12
-rw-r--r--exam00/subjects/2-0-maff_alpha/examples.txt2
-rw-r--r--exam00/subjects/2-0-maff_alpha/subject.en.txt12
-rw-r--r--exam00/subjects/2-0-maff_alpha/subject.fr.txt12
-rw-r--r--exam00/subjects/3-0-ft_putstr/subject.en.txt13
-rw-r--r--exam00/subjects/3-0-ft_putstr/subject.fr.txt12
-rw-r--r--exam00/subjects/4-0-ft_strrev/subject.en.txt12
-rw-r--r--exam00/subjects/4-0-ft_strrev/subject.fr.txt12
-rw-r--r--exam00/subjects/5-0-ft_atoi/subject.en.txt13
-rw-r--r--exam00/subjects/5-0-ft_atoi/subject.fr.txt12
-rw-r--r--exam00/subjects/5-1-ft_atoi/subject.en.txt13
-rw-r--r--exam00/subjects/5-1-ft_atoi/subject.fr.txt12
15 files changed, 161 insertions, 0 deletions
diff --git a/exam00/subjects/0-0-only_z/subject.en.txt b/exam00/subjects/0-0-only_z/subject.en.txt
new file mode 100644
index 0000000..930e2e8
--- /dev/null
+++ b/exam00/subjects/0-0-only_z/subject.en.txt
@@ -0,0 +1,6 @@
+Assignment name : only_z
+Expected files : only_z.c
+Allowed functions: write
+--------------------------------------------------------------------------------
+
+Write a program that displays a 'z' character on the standard output.
diff --git a/exam00/subjects/0-0-only_z/subject.fr.txt b/exam00/subjects/0-0-only_z/subject.fr.txt
new file mode 100644
index 0000000..e5ec893
--- /dev/null
+++ b/exam00/subjects/0-0-only_z/subject.fr.txt
@@ -0,0 +1,6 @@
+Assignment name : only_z
+Expected files : only_z.c
+Allowed functions: write
+--------------------------------------------------------------------------------
+
+Écrire un programme qui affiche un caractère 'z' sur la sortie standard.
diff --git a/exam00/subjects/1-0-ft_countdown/subject.en.txt b/exam00/subjects/1-0-ft_countdown/subject.en.txt
new file mode 100644
index 0000000..0e3dd56
--- /dev/null
+++ b/exam00/subjects/1-0-ft_countdown/subject.en.txt
@@ -0,0 +1,12 @@
+Assignment name : ft_countdown
+Expected files : ft_countdown.c
+Allowed functions: write
+--------------------------------------------------------------------------------
+
+Write a program that displays all digits in descending order, followed by a
+newline.
+
+Example:
+$> ./ft_countdown | cat -e
+9876543210$
+$>
diff --git a/exam00/subjects/1-0-ft_countdown/subject.fr.txt b/exam00/subjects/1-0-ft_countdown/subject.fr.txt
new file mode 100644
index 0000000..c4ff0ef
--- /dev/null
+++ b/exam00/subjects/1-0-ft_countdown/subject.fr.txt
@@ -0,0 +1,12 @@
+Assignment name : ft_countdown
+Expected files : ft_countdown.c
+Allowed functions: write
+--------------------------------------------------------------------------------
+
+Écrire un programme qui affiche tous les chiffres en ordre descendant, suivis
+d'un newline.
+
+Exemple:
+$> ./ft_countdown | cat -e
+9876543210$
+$>
diff --git a/exam00/subjects/2-0-maff_alpha/examples.txt b/exam00/subjects/2-0-maff_alpha/examples.txt
new file mode 100644
index 0000000..e371037
--- /dev/null
+++ b/exam00/subjects/2-0-maff_alpha/examples.txt
@@ -0,0 +1,2 @@
+$> ./maff_alpha | cat -e
+aBcDeFgHiJkLmNoPqRsTuVwXyZ$
diff --git a/exam00/subjects/2-0-maff_alpha/subject.en.txt b/exam00/subjects/2-0-maff_alpha/subject.en.txt
new file mode 100644
index 0000000..e9a8bb0
--- /dev/null
+++ b/exam00/subjects/2-0-maff_alpha/subject.en.txt
@@ -0,0 +1,12 @@
+Assignment name : maff_alpha
+Expected files : maff_alpha.c
+Allowed functions: write
+--------------------------------------------------------------------------------
+
+Write a program that displays the alphabet, with even letters in uppercase, and
+odd letters in lowercase, followed by a newline.
+
+Example:
+
+$> ./maff_alpha | cat -e
+aBcDeFgHiJkLmNoPqRsTuVwXyZ$
diff --git a/exam00/subjects/2-0-maff_alpha/subject.fr.txt b/exam00/subjects/2-0-maff_alpha/subject.fr.txt
new file mode 100644
index 0000000..a4be7f9
--- /dev/null
+++ b/exam00/subjects/2-0-maff_alpha/subject.fr.txt
@@ -0,0 +1,12 @@
+Assignment name : maff_alpha
+Expected files : maff_alpha.c
+Allowed functions: write
+--------------------------------------------------------------------------------
+
+Écrire un programme qui affiche l'alphabet une lettre sur 2 en minuscule, et le
+reste en majuscule (Voir l'exemple), suivi d'un '\n'.
+
+Exemple:
+
+$> ./maff_alpha | cat -e
+aBcDeFgHiJkLmNoPqRsTuVwXyZ$
diff --git a/exam00/subjects/3-0-ft_putstr/subject.en.txt b/exam00/subjects/3-0-ft_putstr/subject.en.txt
new file mode 100644
index 0000000..243e4d8
--- /dev/null
+++ b/exam00/subjects/3-0-ft_putstr/subject.en.txt
@@ -0,0 +1,13 @@
+Assignment name : ft_putstr
+Expected files : ft_putstr.c
+Allowed functions: write
+--------------------------------------------------------------------------------
+
+Write a function that displays a string on the standard output.
+
+The pointer passed to the function contains the address of the string's first
+character.
+
+Your function must be declared as follows:
+
+void ft_putstr(char *str);
diff --git a/exam00/subjects/3-0-ft_putstr/subject.fr.txt b/exam00/subjects/3-0-ft_putstr/subject.fr.txt
new file mode 100644
index 0000000..94183ee
--- /dev/null
+++ b/exam00/subjects/3-0-ft_putstr/subject.fr.txt
@@ -0,0 +1,12 @@
+Assignment name : ft_putstr
+Expected files : ft_putstr.c
+Allowed functions: write
+--------------------------------------------------------------------------------
+
+Écrire une fonction qui affiche une chaîne de caractères sur la sortie standard.
+
+Le pointeur passé à la fonction est l'adresse du premier caractère de la chaîne.
+
+Elle devra être prototypée de la façon suivante :
+
+void ft_putstr(char *str);
diff --git a/exam00/subjects/4-0-ft_strrev/subject.en.txt b/exam00/subjects/4-0-ft_strrev/subject.en.txt
new file mode 100644
index 0000000..6c31580
--- /dev/null
+++ b/exam00/subjects/4-0-ft_strrev/subject.en.txt
@@ -0,0 +1,12 @@
+Assignment name : ft_strrev
+Expected files : ft_strrev.c
+Allowed functions:
+--------------------------------------------------------------------------------
+
+Write a function that reverses a string by modifying it.
+
+It must return its parameter.
+
+Your function must be declared as follows:
+
+char *ft_strrev(char *str);
diff --git a/exam00/subjects/4-0-ft_strrev/subject.fr.txt b/exam00/subjects/4-0-ft_strrev/subject.fr.txt
new file mode 100644
index 0000000..f6eb115
--- /dev/null
+++ b/exam00/subjects/4-0-ft_strrev/subject.fr.txt
@@ -0,0 +1,12 @@
+Assignment name : ft_strrev
+Expected files : ft_strrev.c
+Allowed functions:
+--------------------------------------------------------------------------------
+
+Écrire une fonction qui inverse une chaîne de caractères en la modifiant.
+
+Elle devra renvoyer son paramètre.
+
+Votre fonction devra être prototypée de la façon suivante :
+
+char *ft_strrev(char *str);
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);
diff --git a/exam00/subjects/5-1-ft_atoi/subject.en.txt b/exam00/subjects/5-1-ft_atoi/subject.en.txt
new file mode 100644
index 0000000..ebfe92b
--- /dev/null
+++ b/exam00/subjects/5-1-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-1-ft_atoi/subject.fr.txt b/exam00/subjects/5-1-ft_atoi/subject.fr.txt
new file mode 100644
index 0000000..2c9977c
--- /dev/null
+++ b/exam00/subjects/5-1-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);