Teen Programmers Unite  
 

 

Return to forum top

how can i join strings without using strcat()

Posted by tarot [send private reply] at November 23, 2002, 06:57:22 AM

hi,
i was wondering how to apply other ways to join two strings without the use of strcat fucntion.


thnaks

Posted by gian [send private reply] at November 23, 2002, 07:11:35 AM

I don't know why you would want to, but anyway...
Iterate through the second string, appending it after the last character in the first string. Basically just what strcat does.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.