Re: How to Truncate a file opened by fopen()
- From: G Hasse <gh raditex se>
- To: Kevin DeKorte <kdekorte yahoo com>
- Cc: GNOME <gnome-devel-list gnome org>, gtk-app-devel-list gnome org
- Subject: Re: How to Truncate a file opened by fopen()
- Date: Thu, 16 Sep 2004 14:22:32 +0000
Look into the code for the program truncate. :-)
-----------------------------------------------------------------
man truncate
TRUNCATE(1) FreeBSD General Commands Manual
NAME
truncate -- truncate or extend the length of files
SYNOPSIS
truncate [-c] -s [+|-]size[K|M|G] file ...
truncate [-c] -r rfile file ...
DESCRIPTION
The truncate utility adjusts the length of each regular file given
on the
command-line.
The following options are available:
--------------------------------------------------------------
In FreeBSD
/usr/src/usr.bin/truncate/truncate.c
Open source is so nice!
--
Göran Hasse
----------------------------------------------------------------
Göran Hasse email: gh raditex se Tel: 08-6949270
Raditex AB http://www.raditex.se Fax: 08-4420570
Sickla Alle 7, 1tr Mob: 070-5530148
131 34 NACKA, SWEDEN OrgNr: 556240-0589
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]