Date: Mon, 25 Aug 1997 11:22:05 +0300 (IDT) From: Eli Zaretskii To: djgpp AT delorie DOT com Subject: Re: file_exists() In-Reply-To: <33fdf19a.5293195@news.telepac.pt> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 22 Aug 1997 Marco DOT Monteiro AT delorie DOT com wrote: > Hello, > > how can i inspect if a file exists? > I'm using the function following function; is there a better one? > > /* returns 1 if file exists and 0 otherwise */ > int file_exists(char *name) The DJGPP library has a function named `__file_exists' which does that. I suggest you use it.