This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: rename() in B18..
- To: gnu-win32 at cygnus dot com
- Subject: Re: rename() in B18..
- From: Michael Hirmke <mh at minimike dot franken dot de>
- Date: Fri, 13 Jun 1997 15:54:37 -0500 (CDT)
On Thu, 12 Jun 1997, Keet wrote:
[...]
> if( unlink("test1") < 0) {
> printf("Unable to unlink test1!\n");
> exit(1);
> }
>
> if( rename("test2","test1") < 0 ) {
> printf("Unable to rename test2 to test1!\n");
> exit(1);
> }
You try to unlink open files !
>
> fclose(test1);
> fclose(test2);
> }
>
[...]
Ciao.
Michael.
--
Michael Hirmke | voice +49 (911) 557999
Georg-Strobel-Strasse 81 | fax +49 (911) 557664
D-90489 Nuernberg | email mh@mike.franken.de
Germany | www http://minimike.franken.de/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".