delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/24/00:51:25

Message-ID: <20020624044813.76710.qmail@web11306.mail.yahoo.com>
Date: Sun, 23 Jun 2002 21:48:13 -0700 (PDT)
From: Pedro Izecksohn <izecksohn AT yahoo DOT com>
Subject: re-directing printf.
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

   Hello,

   How is the correct (ANSI) way of re-directing printf to
a piece of memory ?
   I need the result of printf to Allegro's
text_length(font, phrase);, and after to show it using
textprintf(screen, font, x, y, fg, "%s", phrase);, at the
correct place on the screen, without blotting other things
on the screen.
   The problem is that text_length doesn't take the char *
fmt parameter.
   I thought to use a virtual FILE and fprintf, but I don't
know how to create a virtual only file.
   By the way: Does ANSI define how should be inside the
struct FILE ?


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

- Raw text -


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