Subj : Re: read foregrnd / backgrnd colors To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Wed Aug 27 2003 10:51 am Rob C. wrote: >char *readattr(); //<- it says, no protype, but this is it, right? Add the word "void" and the error will go away: char *readattr(void); Function definitions shouldn't have empty (). I think C++ accepts this but C doesn't like it (or is it the other way round?) In any case, probably a good idea to get used to using it always. (Clearer intent and all...) If you went back to returning an unsigned int unsigned int readattr(void); Then you could do this: unsigned long A = readattr(); char C = A&0xff; unsigned int F = (A>>12)&0xf; unsigned int B = (A>>8)&0xf; .