From ad9867052d496f2c2a7f120a512208fb4dd4e787 Mon Sep 17 00:00:00 2001 From: Cabergs Charles Date: Wed, 24 Jul 2019 18:57:19 +0200 Subject: exam02 --- exam02/subjects/0-0-aff_a/subject.en.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 exam02/subjects/0-0-aff_a/subject.en.txt (limited to 'exam02/subjects/0-0-aff_a/subject.en.txt') 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$ -- cgit