1open_trunc(3)              Library Functions Manual              open_trunc(3)
2
3
4

NAME

6       open_trunc - open a file for writing
7

SYNTAX

9       #include <open.h>
10
11       int open_trunc(const char *filename);
12

DESCRIPTION

14       open_trunc  opens  the file filename for write-only use and returns the
15       file handle.  If the file exists, it will be truncated  to  zero  bytes
16       length.   If  it does not exist, it will be created with mode 0644.  If
17       there was an error opening or creating the file, open_trunc returns  -1
18       and sets errno accordingly.
19

SEE ALSO

21       open(2)
22
23
24
25                                                                 open_trunc(3)
Impressum