Skip to content
Snippets Groups Projects
Commit f1be8619 authored by maxence.montavon's avatar maxence.montavon
Browse files

Update base_7.md

parent ba1dc25d
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ char *fgets(char *s, int size, FILE *stream)
```C
FILE *fp = fopen("text.txt", "r");
char buffer[100];
buffer = fgets(buffer, 37, fp);
fgets(buffer, 37, fp);
// lit 36 caractères au plus et les écrit dans buffer
// s'arrête si rencontre EOF, ou "\n".
// ajoute un "\0" terminal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment