forked from menault/TD2_DEV51_Qualite_Algo
ajout du td
This commit is contained in:
@@ -68,11 +68,13 @@
|
||||
}
|
||||
|
||||
/* Read file */
|
||||
while(getline(&read_line,&n,fd) != -1){
|
||||
while(getline(&read_line,&n,fd) != -1 || read_line == NULL){
|
||||
|
||||
/*
|
||||
if(read_line == NULL){
|
||||
break;
|
||||
}
|
||||
*/
|
||||
|
||||
/* Exec regex to find ping */
|
||||
|
||||
@@ -123,6 +125,7 @@
|
||||
return ping;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
-- write_ping_log --
|
||||
Desc :
|
||||
|
Reference in New Issue
Block a user