Fonte: readdir()Returns the name of the next entry in the directory. The entries are returned in the order in which they are stored by the filesystem.
Please note that readdir() doesn't mean in alphabetical order everytime while it sorts in directory order which means "ls -U" in linux

Rispondi quotando