2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

c2/trunc.c File Reference


Detailed Description

ftruncate test program [Sec. 2.17 (not in book)]

Definition in file trunc.c.

Go to the source code of this file.

Defines

#define TEXTLINE   "This is a line.\n"

Functions

void buildfile (void)
int main (void)

Variables

int fd = -1


Define Documentation

#define TEXTLINE   "This is a line.\n"
 

Definition at line 23 of file trunc.c.

Referenced by buildfile().


Function Documentation

void buildfile void   ) 
 

Definition at line 27 of file trunc.c.

References fd, open(), PERM_FILE, syserr(), TEXTLINE, and write().

Referenced by main().

int main void   ) 
 

Definition at line 39 of file trunc.c.

References buildfile(), close(), exit(), fd, ftruncate(), lseek(), read(), syserr(), system(), and write().


Variable Documentation

int fd = -1 [static]
 

Definition at line 25 of file trunc.c.

Referenced by buildfile(), and main().


Generated on Fri Apr 23 10:57:07 2004 for AUP2 Example Source by doxygen 1.3.1