CeDOS - shell/memusage.c

shell/memusage.c (view raw)

1
2
3
4
5
6
7
8
9
10
11
#include "cedos.h"
#include "stdio.h"

#include <stdint.h>

void main(char *args) {
	(void)args;

    uint32_t memusage = sc_mem_usage();
    printf("%i KB\n", memusage / 1000);
}