aboutsummaryrefslogtreecommitdiff
path: root/exam02/subjects/5-0-ft_rrange/subject.en.txt
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-24 18:57:19 +0200
committerCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-24 18:57:19 +0200
commitad9867052d496f2c2a7f120a512208fb4dd4e787 (patch)
tree319a76f0e87b041818156f2d1dfbbc6a7dfacf06 /exam02/subjects/5-0-ft_rrange/subject.en.txt
parent79e6c8152252bac1cd632e224ac496a1823da1a5 (diff)
downloadpiscine-ad9867052d496f2c2a7f120a512208fb4dd4e787.tar.gz
piscine-ad9867052d496f2c2a7f120a512208fb4dd4e787.tar.bz2
piscine-ad9867052d496f2c2a7f120a512208fb4dd4e787.zip
exam02
Diffstat (limited to 'exam02/subjects/5-0-ft_rrange/subject.en.txt')
-rw-r--r--exam02/subjects/5-0-ft_rrange/subject.en.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/exam02/subjects/5-0-ft_rrange/subject.en.txt b/exam02/subjects/5-0-ft_rrange/subject.en.txt
new file mode 100644
index 0000000..f9129bc
--- /dev/null
+++ b/exam02/subjects/5-0-ft_rrange/subject.en.txt
@@ -0,0 +1,19 @@
+Assignment name : ft_rrange
+Expected files : ft_rrange.c
+Allowed functions: malloc
+--------------------------------------------------------------------------------
+
+Write the following function:
+
+int *ft_rrange(int start, int end);
+
+It must allocate (with malloc()) an array of integers, fill it with consecutive
+values that begin at end and end at start (Including start and end !), then
+return a pointer to the first value of the array.
+
+Examples:
+
+- With (1, 3) you will return an array containing 3, 2 and 1
+- With (-1, 2) you will return an array containing 2, 1, 0 and -1.
+- With (0, 0) you will return an array containing 0.
+- With (0, -3) you will return an array containing -3, -2, -1 and 0.