-static void load_options(const char *path, char *bfr, int len)
-{
- *bfr = 0;
- FILE *fp = fopen(path, "r");
- if( !fp ) return;
- fgets(bfr, len, fp); // skip hdr
- len = fread(bfr, 1, len-1, fp);
- if( len < 0 ) len = 0;
- bfr[len] = 0;
- fclose(fp);
-}
-