| delorie.com/archives/browse.cgi | search |
| From: | Erik Max Francis <max AT alcyone DOT com> |
| 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: | <Pine DOT GSO DOT 3 DOT 95 DOT 970304232524 DOT 4697B-100000 AT hops DOT cs DOT jhu DOT edu> |
| NNTP-Posting-Host: | newton.alcyone.com |
| Mime-Version: | 1.0 |
| 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)
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |