RTEMS  5.1
Functions
truncate.c File Reference

Truncate a File to the Specified Length. More...

#include <unistd.h>
#include <errno.h>
#include <fcntl.h>

Functions

int truncate (const char *path, off_t length)
 

Detailed Description

Truncate a File to the Specified Length.

Function Documentation

◆ truncate()

int truncate ( const char *  path,
off_t  length 
)

This routine is not defined in the POSIX 1003.1b standard but is commonly supported on most UNIX and POSIX systems. It is provided for compatibility.