delorie.com/archives/browse.cgi | search |
Date: | Mon, 25 Aug 1997 11:22:05 +0300 (IDT) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
To: | djgpp AT delorie DOT com |
Subject: | Re: file_exists() |
In-Reply-To: | <33fdf19a.5293195@news.telepac.pt> |
Message-ID: | <Pine.SUN.3.91.970825112056.2897D-100000@is> |
MIME-Version: | 1.0 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |