libp7/doc/p7_getfreemem.3.txt

44 lines
781 B
Plaintext

P7_GETFREEMEM(3)
================
Thomas "Cakeisalie5" Touhey
:Email: thomas@touhey.fr
:man source: libp7
:man manual: libp7 manual
NAME
----
p7_getfreemem - get the amount of free memory on a filesystem
SYNOPSIS
--------
[source,c]
----
#include <libp7.h>
int p7_getfreemem(p7_handle_t *handle, const char *devname,
p7uint_t *capacity);
p7uint_t capacity;
p7_getfreemem(handle, "fls0", &capacity);
----
DESCRIPTION
-----------
*p7_getfreemem* gets the amount of free memory, in bytes, of the *devname*
filesystem on the calculator, and stores it in *capacity* (which
*musn't be NULL*).
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)