List files in a folder but only files that starts with a number
I am trying to make a program that can scan a folder, and then list all files that starts with a number. Please help
I am trying to base my idea in this example code.
The above program prints all files in a directory. Can someone help me how to filter the list files so then it will only print files starting with numbers?
struct dirent *dir;
d = opendir("/directory");
while ((dir = readdir(d)) != NULL)