Code: Select all
#include <nds.h>
#include <fat.h>
#include <stdio.h>
#include <unistd.h>
int main(void) {
fatInitDefault();
truncate("test.dat", 123);
while(1) {
swiWaitForVBlank();
}
return 0;
}
The problem is the filesize is the same like before after running the code.
Can anybody help me please?