*BSD News Article 67709


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.hawaii.edu!ames!usenet.kornet.nm.kr!usenet.etri.re.kr!news.kreonet.re.kr!usenet.seri.re.kr!news.cais.net!nntp.primenet.com!uunet!in2.uu.net!news.ultranet.com!bigboote.WPI.EDU!news3.near.net!news.ner.bbnplanet.net!unix.amherst.edu!news.mtholyoke.edu!news.rssi.ru!news.phys.msu.su!news.free.net!news.nask.org.pl!usenet
From: Wojtek Cieplak <wojtekc@david.silesia.pik-net.pl>
Newsgroups: comp.unix.misc,comp.unix.bsd.misc
Subject: Re: How to delete files within C programs
Date: Fri, 03 May 1996 18:08:42 -0700
Organization: Research and Academic Computer Network
Lines: 10
Message-ID: <318AAE1A.636C@david.silesia.pik-net.pl>
References: <Oum-El-Kheir.Benkahla-3004961724540001@mac-ugm-3.imag.fr>
NNTP-Posting-Host: dl5.pik-net.gliwice.pl
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0 (Win16; I)
Xref: euryale.cc.adfa.oz.au comp.unix.misc:22443 comp.unix.bsd.misc:909

Oum-El-Kheir Benkahla wrote:
> 
>    I am searching a way for deleting files within C programs. I tried the
> exec command for executing rm (execlp("rm", "rm", "myfile", 0),

You can try use unlink library function.
Unlink function work always correct.

Wojtek