libite 2.6.1
erasef.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 erasef (const char *fmt,...)
 

Detailed Description

Author
Joachim Wiberg
Date
2021

Definition in file erasef.c.

Function Documentation

◆ erasef()

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

Like erase() but with formatted string support.

Parameters
fmtFormatted string to be composed into a pathname

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

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

Definition at line 44 of file erasef.c.