fs_next_char

struct fs_file_iterator *fs_next_char(struct fs_file_iterator *it, char *c)

Iterates over the next char of a file.

char c;
while(fs_next_char(it, &c))
{
    printf("%c", c);
}

Parameters
  • it[in] Some opened file iterator

  • c[out] Character read

Returns

The same it pointer or NULL if an error occurred or there is no more entry to iterate over.