0

Dear sir/madam

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

With Regards,
AMARNATH

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by Ancient Dragon
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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.