1
0
Fork 0
firefox/docs/nspr/reference/pr_delete.rst
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

38 lines
560 B
ReStructuredText

PR_Delete
=========
Syntax
------
.. code::
#include <prio.h>
PRStatus PR_Delete(const char *name);
Parameters
~~~~~~~~~~
The function has the following parameter:
``name``
The pathname of the file to be deleted.
Returns
~~~~~~~
One of the following values:
- If file is deleted successfully, ``PR_SUCCESS``.
- If the file is not deleted, ``PR_FAILURE``.
Description
-----------
:ref:`PR_Delete` deletes a file with the specified pathname ``name``. If
the function fails, the error code can then be retrieved via
:ref:`PR_GetError`.