From 1f0a8d59f7f934b4a6d46ff85985e6f9078d3552 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Mon, 7 Mar 2011 17:36:41 +0100 Subject: [PATCH] The file has an unusable function, it will be changed --- C_Language/wordcount.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/C_Language/wordcount.c b/C_Language/wordcount.c index bff3162..5f02731 100644 --- a/C_Language/wordcount.c +++ b/C_Language/wordcount.c @@ -1,6 +1,8 @@ #include +#include int lirechl(char *s, int n); +void squeeze( char *s , char *t, char c); int lirechl(char *s, int n) { @@ -20,9 +22,12 @@ int lirechl(char *s, int n) int main() { char string[10]; - int bla = lirechl(&string[0], 7); - printf("Nombre de caracteres jusqu'a saut de ligne : %d \n",bla); + printf("Écrivez puis appuyez sur 'Entrée' : "); + int nb = lirechl(&string[0], 7); + printf("Nombre de caracteres jusqu'à saut de ligne : %d \n",nb); } + +// This is for another exercise. void squeeze( char *s , char *t, char c) { int i = 0;