libite 2.6.1
touchf.c File Reference
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include "lite.h"

Go to the source code of this file.

Functions

int touchf (const char *fmt,...)
 

Detailed Description

Author
Joachim Wiberg
Date
2021

Definition in file touchf.c.

Function Documentation

◆ touchf()

int touchf ( const char * fmt,
... )

Like touch() but with formatted string support

Parameters
fmtFormatted string to be composed into a pathname

This is a wrapper for the touch() function in lite.h, lessening the burden of having to compose the filename from parts in a seprate buffer.

Returns
Upon successful completion touchf() returns POSIX OK(0), otherwise, -1 is returned and errno is set to indicate error.

Definition at line 44 of file touchf.c.