aboutsummaryrefslogtreecommitdiff
path: root/exam02/subjects/0-0-aff_a/subject.en.txt
diff options
context:
space:
mode:
Diffstat (limited to 'exam02/subjects/0-0-aff_a/subject.en.txt')
-rw-r--r--exam02/subjects/0-0-aff_a/subject.en.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/exam02/subjects/0-0-aff_a/subject.en.txt b/exam02/subjects/0-0-aff_a/subject.en.txt
new file mode 100644
index 0000000..c8863b4
--- /dev/null
+++ b/exam02/subjects/0-0-aff_a/subject.en.txt
@@ -0,0 +1,20 @@
+Assignment name : aff_a
+Expected files : aff_a.c
+Allowed functions: write
+--------------------------------------------------------------------------------
+
+Write a program that takes a string, and displays the first 'a' character it
+encounters in it, followed by a newline. If there are no 'a' characters in the
+string, the program diplays 'a' followed by a newline. If the number of parameters is not
+1, the program displays 'a' followed by a newline.
+
+Example:
+
+$> ./aff_a "abc" | cat -e
+a$
+$> ./aff_a "RaInB0w d4Sh!" | cat -e
+a$
+$> ./aff_a "ThE Ck3 Is L|3" | cat -e
+a$
+$> ./aff_a | cat -e
+a$