Home
Community
Discussion Forums
Most Active Software Boards
LabWindows/CVI
Topic
LabWindows/CVI
Register
·
Login
·
Help
Community
Category
Board
Documents
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Topic Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
All Forum Topics
Previous Topic
Next Topic
Integer to string
Integer to string
Skinny
Member
04-27-2005
07:51 AM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
Cannot find a function to convert integers to char[]. itoa() is not in ANSI stdlib. Any suggestions?
Thanks,
Skinny
0
Kudos
Message
1
of 2
(3,494 Views)
Reply
Re: Integer to string
Al_S
Active Participant
04-27-2005
07:55 AM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
The ANSI C function sprintf lets you do any of the formatting conversions available to printf.
#include < ansi_c.h > // remove spaces between < >
int myInt = 1234;
char myString[256];
sprintf(myString, "%d", myInt);
1
Kudo
Message
2
of 2
(3,492 Views)
Reply
All Forum Topics
Previous Topic
Next Topic