cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/16/14:23:10

Date: Mon, 16 Mar 1998 17:07:11 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Will Fong <will AT cyberstation DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: Filename snooping with DJGPP
In-Reply-To: <350D321D.70469665@cyberstation.ca>
Message-ID: <Pine.SUN.3.91.980316170453.15480E-100000@is>
MIME-Version: 1.0

On Mon, 16 Mar 1998, Will Fong wrote:

>     In DJGPP (running on a DOS/Win95 platform), is there a way to change
> directories? 

There's a library function called `chdir' which you should use.

> And when in the directory, to determine all the file names in that 
> directory and store just the filenames to an array?

Use the library functions `opendir' and `readdir'.

All of these are documented in the library reference.  To read the docs 
of any function, type "info libc alpha <func-name>" from the DOS prompt, 
where <func-name> is the name of the function.  For example:

	info libc alpha opendir

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019