File listing for current directory under Unix?

John Gordon gordon at osiris.cso.uiuc.edu
Wed May 8 06:44:03 AEST 1991


marekp at pnet91.cts.com (Marek Pawlowski) writes:

>Does anyone know of a way to get the filenames of the files in the current
>directory, in to a two dimensional array of sorts?

	Yes.  do a:    popen("ls *", "r");


---
John Gordon
Internet: gordon at osiris.cso.uiuc.edu        #include <disclaimer.h>
          gordon at cerl.cecer.army.mil       #include <clever_saying.h>



More information about the Comp.lang.c mailing list