示例#1
0
void
test_file_io (void)
{	const char *filename = "file_io.dat" ;

	file_open_test	(filename) ;
	file_read_write_test	(filename) ;
	file_seek_with_offset_test (filename) ;
	file_truncate_test (filename) ;

	unlink (filename) ;
} /* main */
示例#2
0
int
main (void)
{	const char *filename = "file_io.dat" ;

	file_open_test	(filename) ;
	file_read_write_test	(filename) ;
	file_truncate_test (filename) ;

	unlink (filename) ;

	return 0 ;
} /* main */