#include <rm.h>
Public Attributes | |
void * | state |
void(* | handler )(void *, int, char *) |
nps_rm() and nps_rm_force provide c-based interface for deleting files with default or customized error condition handling. Its most common use is conceived as: if (nps_rm(path,1, NULL)) // Do not report any errors if (nps_rm_force(path,1, nps_rm_warning)) // Report errors to stderr
By defining your own nps_rm_warning implementation (see struct def below), you can determine error behavior. nps_rm_handler_t is a closure-like struct. It provides the mechanism for customizing error handling.
void(* nps_rm_handler_t::handler)(void *, int, char *) |
void* nps_rm_handler_t::state |