Re: itoa

From: Mike Breuer (mbreuer@new.rr.com)
Date: 04/07/02


> Otherwise, does anyone know how to
> write the function or where to look for it?

You can get basically the same functionality with sprintf:

char str[16];

sprintf(str, "%d", 1234);

or

itoa(1234, str, 10);

I believe itoa() is typically found in stdlib.h and sprintf() is
generally in stdio.h.

Mike

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT