cosmetic
This commit is contained in:
parent
bfef02de49
commit
db14adeb86
@ -1,14 +1,14 @@
|
||||
/*
|
||||
* exemple utilisation 'fgets'
|
||||
* exemple d'utilisation de 'fgets'
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#define TL 8
|
||||
#define TL 12
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
char buffer[TL+1];
|
||||
while( fgets(buffer, TL, stdin) ) {
|
||||
printf(" %4ld\n", strlen(buffer));
|
||||
printf(" %4ld %s\n", strlen(buffer), buffer);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user