Get internal memory size information

Get information about internal memory size - total and available (in bytes)
#include <storage.h>
#include <dlog.h> // for logging purposes

void
get_internal_memory_size_info() {
	struct statvfs s;

	if(storage_get_internal_memory_size(&s) == STORAGE_ERROR_NONE)
		LOGI("Internal memory size - total: %lf, available: %lf",
				(double)s.f_frsize * s.f_blocks, (double)s.f_bsize * s.f_bavail);
}

Responses

0 Replies