Thread: Formatted String Concatinate

  1. #1
    Registered User
    Join Date
    Aug 2014
    Posts
    15

    Question Formatted String Concatinate

    I realize this is a basic question, but I would like to know how to append a formatted string to a string. I know printf will print them, but I want to append them. Is there a way to do this. I am doing a little work with pointers, and I seem to have forgotten things like this. Thank you.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Read up on sprintf, strcat and strncat to see which would the best for what you want to do.

  3. #3
    Registered User
    Join Date
    Aug 2014
    Posts
    15
    OK, Thanks. I know I don't need strcat() or strncat()... Thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Formatted output %*s
    By dtow1 in forum C Programming
    Replies: 3
    Last Post: 12-15-2012, 12:29 PM
  2. Concatinate strings located inside a vector.
    By sniperwire in forum C++ Programming
    Replies: 4
    Last Post: 11-19-2009, 02:23 PM
  3. Formatted input
    By vaibhav in forum C++ Programming
    Replies: 1
    Last Post: 10-21-2005, 11:19 PM
  4. Please help with formatted I/O
    By ucme_me in forum C Programming
    Replies: 9
    Last Post: 12-07-2001, 09:10 AM
  5. formatted I/O
    By Unregistered in forum C Programming
    Replies: 0
    Last Post: 12-05-2001, 08:05 PM

Tags for this Thread