48 lines
913 B
Plaintext
48 lines
913 B
Plaintext
|
P7_DELETE(3)
|
||
|
============
|
||
|
Thomas "Cakeisalie5" Touhey
|
||
|
:Email: thomas@touhey.fr
|
||
|
:man source: libp7
|
||
|
:man manual: libp7 manual
|
||
|
|
||
|
NAME
|
||
|
----
|
||
|
p7_delete - delete a file which is on the calculator
|
||
|
|
||
|
SYNOPSIS
|
||
|
--------
|
||
|
[source,c]
|
||
|
----
|
||
|
#include <libp7.h>
|
||
|
|
||
|
int p7_delete(p7_handle_t *handle,
|
||
|
char *dirname, char *filename, char *devname);
|
||
|
|
||
|
p7_delete(handle, NULL, "responsabilities.txt", "fls0");
|
||
|
----
|
||
|
|
||
|
DESCRIPTION
|
||
|
-----------
|
||
|
This function removes a distant file.
|
||
|
|
||
|
If directory name is NULL, file will be deleted at root. If the filename is
|
||
|
NULL, then the file/directory with the given directory name will be deleted,
|
||
|
with its content.
|
||
|
|
||
|
There cannot be simultaneously no directory name and no filename (i.e. the root
|
||
|
cannot be deleted).
|
||
|
|
||
|
RETURN VALUE
|
||
|
------------
|
||
|
This function returns zero if everything went well, and the error code
|
||
|
otherwise.
|
||
|
|
||
|
ERRORS
|
||
|
------
|
||
|
See *p7_error*(3).
|
||
|
|
||
|
SEE ALSO
|
||
|
--------
|
||
|
*libp7*(3),
|
||
|
*p7_error*(3)
|