hello everyone
i was trying to make my own own string concatenation function but wasnt able to do so. i need ur help.
sahil_logic 0 Light Poster
Recommended Answers
Jump to Posthello everyone
i was trying to make my own own string concatenation function but wasnt able to do so. i need ur help.What don't you understand that prevents you from doing this? What do you think would be a subroutine that does work?
Jump to PostIt should be
str2[j]!='\0'
not
str2[j]=!'/0'
change '/0' in first for loop also...use fgets instead of gets
Jump to PostAs for the
strcat
, this is in the Code Snippets:
Strings: Concatenation[edit]And never use gets.
All 11 Replies
Rashakil Fol 978 Super Senior Demiposter Team Colleague
sahil_logic 0 Light Poster
SpS 34 Posting Pro
sahil_logic 0 Light Poster
SpS 34 Posting Pro
sahil_logic 0 Light Poster
sahil_logic 0 Light Poster
sahil_logic 0 Light Poster
SpS 34 Posting Pro
sahil_logic 0 Light Poster
Dave Sinkula 2,398 long time no c Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.