I’m creating a simple C program that list directory contents. Does anyone know how to list only hidden? The folllowing code pulls every file from the directory and works perfect, but I only need the hidden files. Thanks.
I’m creating a simple C program that list directory contents. Does anyone know how
Share
On GNU/Linux, a hidden file begin with a dot.
To check if a file is read-only, it could be a good idea to use the
statfunction.