Like Tree1Likes
  • 1 Post By laserlight

Formatted String Concatinate

This is a discussion on Formatted String Concatinate within the C Programming forums, part of the General Programming Boards category; I realize this is a basic question, but I would like to know how to append a formatted string to ...

  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
    22,275
    Read up on sprintf, strcat and strncat to see which would the best for what you want to do.
    yuxuantim likes this.

  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-22-2005, 12:19 AM
  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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21