Date: Tue, 12 Jan 1999 10:51:06 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Omar Hawk cc: djgpp AT delorie DOT com Subject: Re: finding directiries with djgpp In-Reply-To: <369a2919.479044@news.btx.dtag.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Mon, 11 Jan 1999, Omar Hawk wrote: > is there a C function to find the first/next directory under both > DOS/Linux? (the approach with the ffblk doesn't seem to fit the bill - > READ: a portable function) Use the functions opendir, readdir, and closedir. They are portable to most DOS/Windows C compilers; and they are Posix-standard, so Unix compilers support them as well. > does djgpp recognize LFNs if i set LFN=Y under windows 9X's dos mode? If by ``dos mode'' you mean to shut down Windows and go to DOS, then no, LFN is not supported in that mode.