delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/10/09:45:27

Message-ID: <009a01bfd2e2$8af950a0$817a5a8f@dynabook>
From: "Rogerio Mazakina" <dway AT designer DOT mailbr DOT com DOT br>
To: <djgpp AT delorie DOT com>
References: <393FF15E DOT C39C0175 AT gtcom DOT net> <200006090758 DOT KAA06169 AT alpha DOT netvision DOT net DOT il> <3940B899 DOT 8A8C3AD3 AT gtcom DOT net> <200006091445 DOT RAA32490 AT alpha DOT netvision DOT net DOT il> <39419803 DOT 221A0CE2 AT gtcom DOT net>
Subject: search \n and print in a new line
Date: Sat, 10 Jun 2000 22:48:21 +0900
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Reply-To: djgpp AT delorie DOT com

Hello.

I building a game with allegro and the

textout function do not detect \n.
so i need to search \n in the string and call textout again.
how to do this?

I tried this ...

for(i=0; i<10; i++, a++)
  if (string[i] == "\n") break;
  else t_string[a] = string[i];

textout(...,  t_string, ...)

But dont work

Thanks...

Rogerio
http://dway.cjb.net



- Raw text -


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