How do I check the existence of the EOF in the name field of the following structure?
struct dirent * ent;
ent->d_name;
i.e. I want to know if ent->d_name
owns the EOF.
On the other hand, could initialize the variable is of type char[256]
ent->d_name[255]='\0';
But I get the following warning:
warning: can be used 'ent' uninitialized in this function [-Wuninitialized]