A little help with string manipulation

This is a discussion on A little help with string manipulation within the C Programming forums, part of the General Programming Boards category; Originally Posted by Ancient Dragon yes, its true that memmove doesn't allocate space, but it doesn't have to. The space ...

  1. #16
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by Ancient Dragon
    yes, its true that memmove doesn't allocate space, but it doesn't have to. The space is already allocated.
    Ah, I see that you weren't trying for a reusable solution. My mistake.


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

  2. #17
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    Quote Originally Posted by dwks
    Couldn't you just go like this?
    Code:
    char recent[99] = {0};
    yes, I just keep forgetting about that .

  3. #18
    Registered User
    Join Date
    Nov 2005
    Posts
    18
    Wow. That's a lot of stuff to absorb. I'll try and understand as much as I can.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ ini file reader problems
    By guitarist809 in forum C++ Programming
    Replies: 7
    Last Post: 09-04-2008, 06:02 AM
  2. Compile Error that i dont understand
    By bobthebullet990 in forum C++ Programming
    Replies: 5
    Last Post: 05-05-2006, 09:19 AM
  3. Replies: 4
    Last Post: 03-03-2006, 01:11 AM
  4. Linked List Help
    By CJ7Mudrover in forum C Programming
    Replies: 9
    Last Post: 03-10-2004, 09:33 PM
  5. string manipulation
    By SPEKTRUM in forum Linux Programming
    Replies: 3
    Last Post: 01-26-2002, 10:41 AM

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