Thread: how do I combine two strings together

  1. #16
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768

    What is wrong with you people?

    Why reinventing the wheel? When you have string.h supported by every C compiler on the planet?


    Well, at least most of you really "tried" to make it without string.h, unlike debuger2004, who said:

    program to concat without using strcpy and strcat functions
    Why??? If you're planning to use strlen(), and already included the string.h, then just use strcat(), and strcpy() as well... Damn!
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  2. #17
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826

    Re: What is wrong with you people?

    Originally posted by Devil Panther
    Why reinventing the wheel? When you have string.h supported by every C compiler on the planet?
    You seem to have missed what was actually happening in the bulk of this thread. Let me recap it for you: Multiple people posting horribly incorrect code, the rest telling them they're wrong.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #18
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    I did notice that, but you must remember how it all started!
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  4. #19
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>I modified printf to use %p instead of %x so it's "more correct" from a learning point of view.
    And to be even more correct:
    >>printf("%p, %p\n", (void*)foostr, (void*)foostr2 );

    Sorry, I'm being being picky
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  5. #20
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Originally posted by Hammer
    Sorry, I'm being being picky
    In other words:

    Hammer -pedantic



    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strings Program
    By limergal in forum C++ Programming
    Replies: 4
    Last Post: 12-02-2006, 03:24 PM
  2. Programming using strings
    By jlu0418 in forum C++ Programming
    Replies: 5
    Last Post: 11-26-2006, 08:07 PM
  3. Reading strings input by the user...
    By Cmuppet in forum C Programming
    Replies: 13
    Last Post: 07-21-2004, 06:37 AM
  4. How to combine 2 strings ?
    By The-Guy in forum C++ Programming
    Replies: 2
    Last Post: 07-03-2002, 09:10 PM
  5. menus and strings
    By garycastillo in forum C Programming
    Replies: 3
    Last Post: 04-29-2002, 11:23 AM