From: "W. L. Estes" Newsgroups: comp.os.msdos.djgpp Subject: gettextinfo(), cprintf() question Date: Tue, 4 Mar 1997 15:37:52 -0500 Organization: The University of North Carolina at Greensboro Lines: 36 Message-ID: Reply-To: "W. L. Estes" NNTP-Posting-Host: euler.uncg.edu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp When i attempt to compile the following: #include int main() { struct text_info { unsigned char winleft; unsigned char wintop; unsigned char winright; unsigned char winbottom; unsigned char attribute; unsigned char normattr; unsigned char currmode; unsigned char screenheight; unsigned char screenwidth; unsigned char curx; unsigned char cury; } ; text_info *foo; gettextinfo (*foo); cprintf ("%u", foo.screenheight); return 0; } I am told that text_info and foo are undeclared. what should i be doing? and what about the call to cprintf? is that gonna work, if not what should that be? i just wanna print the screenheight. thanks in advance, --will