My apologies. Allow me to detail this slightly.
struct
{
struct
{
char name[32];
float value; /*necessary because it will carry a decimal*/
} best_ratio;
} bfield_data;
so
bfield_data.best_ratio.name.
Writes to a file to look like:
Bestname Jeremy
..for example.
Reading it in:
...
char *tmp;
...
case 'B':
if (!str_cmp (word, "Bestname"))
{
tmp = fread_word (fp);
strcpy (bfield_data.best_ratio.name, tmp);
fMatch = TRUE;
break;
}
I believe that's everything relevant. Fread_word is fread_word. Stock ROM. I
won't bother posting it, that would be just pointless spam. :-(
Based on what Dale said, since memory is never allocated, I guess there's no
problem. I certainly don't allocate any and fread_word appears not to.