Thread: How join two strings?

  1. #1
    Registered User
    Join Date
    Dec 2013
    Posts
    46

    How join two strings?

    How join two strings? basic reason is add given filename little text to end. I try do by hobby not school project program which converts files format x to format y.i dont say which formats becouse reading and writing is almost done. (only little amount code is needed).'

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Look up the "strcat" function.

  3. #3
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    If you wanna do it by hand, allocate contiguous storage large enough to hold the concatenation of both strings and copy them into the newly allocated data.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to join this two together?
    By SuperMiguel in forum C Programming
    Replies: 7
    Last Post: 06-20-2012, 02:01 AM
  2. Unable to join two strings due to Segmentation Fault
    By Orange Lozenge in forum C++ Programming
    Replies: 3
    Last Post: 09-15-2011, 04:00 PM
  3. String problems - strings seem to join?
    By Metalixia in forum C++ Programming
    Replies: 2
    Last Post: 01-18-2007, 11:00 AM
  4. Join 2 strings inside 'fopen'?
    By tomas.ra in forum C Programming
    Replies: 5
    Last Post: 09-24-2005, 04:08 PM