delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/05/04:00:56

Date: Wed, 5 Mar 1997 10:41:25 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "W. L. Estes" <wlestes AT hamlet DOT uncg DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: gettextinfo(), cprintf() question
In-Reply-To: <Pine.GSO.3.93.970304152406.8608A-100000@euler.uncg.edu>
Message-ID: <Pine.SUN.3.91.970305104108.14799G-100000@is>
MIME-Version: 1.0

On Tue, 4 Mar 1997, W. L. Estes wrote:

> 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?

You should write this:

	struct text_info foo;
	gettextinfo (&foo);

and then it will work, including the call to `cprintf'.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019