Function setpref
#include <macaw.h>int setpref(const char *key, const char *value);
Changes one of the system preferences. The change is saved, so it stays after Macaw OS starts again.
Parameters
keyconst char *- The setting's name. Programs can't change the screen's (
display_...): ask withdisplay_requestinstead. valueconst char *- The new value as text: a number,
"true"or"false"(or"1"or"0"), or text.NULLputs it back as it starts.
Returns int
1 if it changed, or 0 if there's no such setting or the text doesn't suit it.
In The desktop, with openpath, getpref.