Re: [cc65] a question about the write function

From: Groepaz <groepaz1gmx.net>
Date: 2007-02-12 15:49:02
On Monday 12 February 2007 15:43, Jac Ato wrote:

> Finally, I wanted to know if there is a function similar to printf
> (fprintf?) that would return a pointer to a formated string. This way,
> I could just pass it to my uart_send_byte_ptr()...

char outstr[20];

sprintf(outstr,"boing %d",42);

=)

-- 

http://www.hitmen-console.org
http://www.gc-linux.org/docs/yagcd.html
http://www.pokefinder.org
http://ftp.pokefinder.org

Die gute Unterhaltung besteht nicht darin, daß man selbst etwas Gescheites 
sagt, sondern daß man etwas Dummes anhoeren kann. 
<Willhelm Busch>

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Feb 12 15:49:04 2007

This archive was generated by hypermail 2.1.8 : 2007-02-12 15:49:06 CET