From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: gettextinfo(), cprintf() question Date: Wed, 05 Mar 1997 09:22:51 -0800 Organization: Alcyone Systems Lines: 22 Message-ID: <331DABEB.72DA45E5@alcyone.com> References: NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Michael Phelps wrote: > Unless you are using C++, you need to declare this as > struct text_info *foo; ... > My guess is that you want to call function gettextinfo like so: > gettextinfo(foo); This will cause a crash, since foo is not pointing to anything. Try: struct text_info foo; gettextinfo(&foo); -- Erik Max Francis, &tSftDotIotE / email: max AT alcyone DOT com Alcyone Systems / web: http://www.alcyone.com/max/ San Jose, California, United States / icbm: 37 20 07 N 121 53 38 W \ "I am become death, / destroyer of worlds." / J. Robert Oppenheimer (quoting legend)