From 475449dd4b1f3308bac6f72c34d87812216a0738 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 24 Jul 2019 18:57:19 +0200 Subject: exam02 --- exam02/subjects/3-0-inter/subject.en.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 exam02/subjects/3-0-inter/subject.en.txt (limited to 'exam02/subjects/3-0-inter/subject.en.txt') diff --git a/exam02/subjects/3-0-inter/subject.en.txt b/exam02/subjects/3-0-inter/subject.en.txt new file mode 100644 index 0000000..7259b8b --- /dev/null +++ b/exam02/subjects/3-0-inter/subject.en.txt @@ -0,0 +1,23 @@ +Assignment name : inter +Expected files : inter.c +Allowed functions: write +-------------------------------------------------------------------------------- + +Write a program that takes two strings and displays, without doubles, the +characters that appear in both strings, in the order they appear in the first +one. + +The display will be followed by a \n. + +If the number of arguments is not 2, the program displays \n. + +Examples: + +$>./inter "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" | cat -e +padinto$ +$>./inter ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e +df6ewg4$ +$>./inter "nothing" "This sentence hides nothing" | cat -e +nothig$ +$>./inter | cat -e +$ -- cgit