I want to save data on the RedPitaya within a C program. /var/ seems to be read-write but isn't there a better location to save files to?
I also get some strange compiler-errors when I try to open a file:
Code: Select all
#include <stdio.h>
..
FILE *f;
f = fopen(dir, "w");
error: a label can only be part of a statement and a declaration is not a statement
FILE *f;
^