[SDL] "Internet" keyboard, "multimedia" keys

Gilbert Ramirez gram at alumni.rice.edu
Sun Jan 19 21:28:01 PST 2003


> > fwrite(temp,1,1,f);
> > temp=((unsigned int)value)>>8;
> > fwrite(temp,1,1,f);
> > temp=((unsigned int)value)>>16;
> > fwrite(temp,1,1,f);
> > temp=((unsigned int)value)>>24;
> > fwrite(temp,1,1,f);
> You probably meant
> fwrite(&temp, 1, 1, f);
> (pointer to the char)

Or better yet, how 'bout fputc/fgetc? Much better/faster than fwrite by a
*LONG* shot.

-->Neil

-------------------------------------------------------------------------------
Neil Bradley            In the land of the blind, the one eyed man is not
Synthcom Systems, Inc.  king - he's a prisoner.
ICQ #29402898





More information about the SDL mailing list