Ajout fonction check ligne vide

This commit is contained in:
Rick 2020-12-14 01:18:48 +01:00
parent 040eaf1a62
commit 11bca8a3b3
Signed by: Rick
GPG Key ID: 9570A7DB7CB2F436
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,8 @@ int check_void_line(FILE *ptr)
if (check_line[0] == '\n' && (check_line[1] == '\n' || check_line[1] == EOF))
ret = 1;
// reviens un caractère en arrière pour éviter de perdre des infos
// quand on check la présence dune ligne vide
fseek(ptr, -1, SEEK_CUR);
return ret;