954,505 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

concatination of integer string to char string

Dear sir/madam

how can we concatinate the character string to the integer string without using sscanf( ),sprintf( ),atoi( ),itoa( ) .

With Regards,
AMARNATH

amarnath.dasari
Newbie Poster
2 posts since Sep 2006
Reputation Points: 22
Solved Threads: 0
 

First, make sure the destination string is NOT a string literal, and that the size of the destingation string buffer is large enough to hold both strings. Once you know that, then find the end of the destination string and copy the source string at that spot one character at a time and in a loop. You can use pointers to do that or some indexing scheme you devise.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You