libite 2.6.1
|
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
int | truncatef (off_t length, const char *fmt,...) |
int truncatef | ( | off_t | length, |
const char * | fmt, | ||
... ) |
Truncate a file based on the formatted string
length | Size in bytes to truncate file to, zero to empty it |
fmt | Formatted string to be composed into a pathname |
This is an extension to the truncate() family, lessening the burden of having to compose the filename from parts in a seprate buffer.
Definition at line 42 of file truncatef.c.