afc_string_fget

Name

afc_string_fget  -- Get a line of text from a file

Synopsis

char * afc_string_fget ( char * deststring, FILE * file );

Description

Use this function to read a line of text from a file. This function is advanced considering the usual C fgets command: it does bound checking so you don't have to do any control before reading from the file.

Inputs

deststring

Destination string. This string MUST be an AFC string created using afc_string_new()

file

A valid file handler where to get the string from.

Result

Note

See Also