Subj : Re: Wayne King (disregard ealier question) BIOS interrupt To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Thu Aug 21 2003 07:22 pm The function header is this: int readattr(void) That tells you what data type the function returns. > readattr(); //-- what type is returned? How would > I print/store //-- the results? Any way you want. Declare a variable and assign it the result of the function call. After that do whatever you will with it. Anyone who is doing low level video interrupt function calls should already be long past the point of needing to learn how to write to the screen. .. Ed > Rob C wrote in message > news:3f453741$1@newsgroups.borland.com... > > disregard ealier question, everything works fine now....though > now, what type is returned? How would I print/store the results? > > #include > > int readattr(void) > { > struct REGPACK rp = {0}; > > rp.r_ax = 0x0800; > intr(0x10, &rp); > > return rp.r_ax & 0x00ff; > } > > int main() > { > readattr(); //-- what type is returned? How would I print/store > //-- the results? > > return; > } .