Answers for "fgets function in c"

C
14

fgets c

<open file>
while(fgets(<char array>, <size of array>, <file pointer>) != null)
Posted by: Guest on December-06-2019
0

fseek function in c

FILE* fp;
// if file is 50 bytes long:
fseek(fp, /* from the end */ 23, SEEK_END); // <- at 50 - 23 so 27
fseek(fp, /* from the start */ 23, SEEK_SET); // 23
fseek(fp, /* from the the current (see ftell) */ 10, SEEK_CUR); // 33
Posted by: Guest on December-16-2020

Code answers related to "C"

Browse Popular Code Answers by Language