| delorie.com/archives/browse.cgi | search |
| Date: | Tue, 4 May 1999 11:06:44 +0300 (IDT) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | OmniMeta <meta AT psxrocks DOT com> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: Why printf of stdio.h don't work ? |
| In-Reply-To: | <kk9X2.3253$%W6.12159@wagner.videotron.net> |
| Message-ID: | <Pine.SUN.3.91.990504110542.16899F-100000@is> |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
On Mon, 3 May 1999, OmniMeta wrote:
> here, sttr is a char* and col a int
> what's wrong ?
>
> gotoxy(40-strlen(sttr)/2,col);
> printf("%s",sttr);
Direct screen access and printf don't mix well. See section 9.4 of the
DJGPP FAQ list for more details.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |