libite 2.6.1
fremove.c File Reference
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

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

Detailed Description

Author
Joachim Wiberg
Date
2021

Definition in file fremove.c.

Function Documentation

◆ fremove()

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

Remove a file based on the formatted string and optional arguments

Parameters
fmtFormatted string to be composed into a pathname

This function is an extension to remove(), lessening the burden of first having to compose the filename from parts in a seprate buffer.

Returns
same as remove(3), with an extra errno, ENOBUFS if alloca() fails to get a temporary buffer for composing the file name.

Definition at line 40 of file fremove.c.