libite
Functions
touchf.c File Reference
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include "lite.h"
Include dependency graph for touchf.c:

Functions

int touchf (const char *fmt,...)
 Like touch() but with formatted string support. More...
 

Detailed Description

Author
Joachim Wiberg
Date
2021

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.