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

Functions

int fremove (const char *fmt,...)
 Remove a file based on the formatted string and optional arguments. More...
 

Detailed Description

Author
Joachim Wiberg
Date
2021

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.