libite
Functions
erasef.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 erasef.c:

Functions

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

Detailed Description

Author
Joachim Wiberg
Date
2021

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.