I was learning about some of the functions in dirent.h and wrote this small program that prints out the contents of whatever directory you happen to be in and I was wondering why in NTFS I get a file serial number of 0. Does ntfs not use these or do I just not have permission to see the number?
This proram was compiled by mingw and run in windows xp.
int count = 0;
struct dirent *fname = NULL;
currentdir = opendir(".");
while((fname = readdir(currentdir)))
printf("\nNumber of directy entries are %i.\n",count);
Number of directory entries are 3.