Path: utzoo!attcan!uunet!peregrine!elroy.jpl.nasa.gov!usc!apple!sun-barr!newstop!texsun!csccat!dalnet!dlss2!james From: james@dlss2.UUCP (James Cummings) Newsgroups: comp.unix.questions Subject: Re: Unix C routines Message-ID: <127@dlss2.UUCP> Date: 5 Dec 90 19:25:20 GMT References: <1990Dec5.051318.22071@metro.ucc.su.OZ.AU> Reply-To: james@dlss2.UUCP (James Cummings) Distribution: comp Organization: RedRock Development Lines: 27 In article <1990Dec5.051318.22071@metro.ucc.su.OZ.AU> andrew@ee.su.oz.au (Andrew Ho) writes: > >Hi, > > I am writing an application for Unix X-window >which requires the following routines : > > (1) a routine that can return the full path > string of the current directory > System V 3.2.x -- getcwd() Berkeley 4.3 -- getwd() > (2) another routine to return all the file > names in the current directory > Berkeley 4.3 -- use " and " the "opendir()" is used much like "fopen()" and the "readdir()" call can be used to read inode and file names into a struct of type DIR until the readdir returns NULL. Check the Programmer's reference. System V -- similar to BSD, but you may have to investigate the "dirent.h" header as well. Hope this helps.