*BSD News Article 67358


Return to BSD News archive

Newsgroups: comp.unix.misc,comp.unix.bsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.uio.no!news.cais.net!newsfeed.internetmci.com!in2.uu.net!cygnus.com!kithrup.com!sef
From: sef@kithrup.com (Sean Eric Fagan)
Subject: Re: How to delete files within C programs
Organization: Kithrup Enterprises, Ltd.
Message-ID: <DqquoL.5z5@kithrup.com>
References: <Oum-El-Kheir.Benkahla-3004961724540001@mac-ugm-3.imag.fr> <4m5p3k$3nq@dfw-ixnews2.ix.netcom.com> <4m7sr3$rf9@news.rhrz.uni-bonn.de> <4m8csc$3jg@innocence.interface-business.de>
Date: Wed, 1 May 1996 20:38:45 GMT
Lines: 10
Xref: euryale.cc.adfa.oz.au comp.unix.misc:22308 comp.unix.bsd.misc:875

In article <4m8csc$3jg@innocence.interface-business.de>,
J Wunsch <joerg_wunsch@interface-business.de> wrote:
>Anyway, unlink() is plain standard C, so you can get any C book to
>learn this.

Actually, unlink() is POSIX, not "standard C."  ANSI has "remove()," which,
while it doesn't guarantee that the file will be actually removed, is
probably good enough in most cases.  (An implementation could, instead of
actually removing a file, simply change the name.)