Ethereal-dev: Re: [Ethereal-dev] file close.

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Ronnie Sahlberg" <ronnie_sahlberg@xxxxxxxxxxxxxx>
Date: Tue, 7 Jan 2003 21:12:39 +1100
----- Original Message -----
From: "Mudium, Ravi Kumar (Ravi)"
Sent: Tuesday, January 07, 2003 5:20 PM
Subject: [Ethereal-dev] file close.


> Hi
>
> I have a requirement to make the file contents to zero but the file should
> be left open through c source code.
> Can any one help me in finding out the required system call.
>

Not sure how it relates to Ethereal but if you have a filehandle and you
want it to remain open,
and also want the file to be truncated to 0 bytes and you want to do it in
C, then


man freopen         , use mode "w"


> Thanks and Regards
> Ravi Kumar
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev