PDA

View Full Version : ANSI C for getting the number of files in a specific directory


bloodfire
10-22-2005, 09:56 AM
Do any 1 know the function or the code for getting the number of files in a directory in linux for ANSI C language? For instance would like to check the number of files starting with "file_".

i3839
10-22-2005, 01:19 PM
See the manpages of readdir(3) and glob(3).