Thread: Still stuck, please help

  1. #1
    Registered User
    Join Date
    Dec 2001

    Unhappy Still stuck, please help

    hi, quickly read my previous message:

    How do I implement what Fordy recommended. And whats the parameters for the Strcpy()?

    1 more quick thing, but the above is most important. Know any good sites for learning the finer side of Strings (all most bizarre to me coming from Java)... Something intermediate.


  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    char* strcpy(char* destination ,const char* source)

    copies null terminated string source to destination ( which must somehow have been previously allocated ( array/new/malloc)). destination is returned.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

  3. #3
    dont forget to add 1 to your memory allocation. This will account for the NULL that is added.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 10-23-2006, 07:22 PM
  2. string array stuck:(
    By mass in forum C Programming
    Replies: 18
    Last Post: 05-22-2006, 04:44 PM
  3. Program stuck in infinite loop-->PLEASE HELP
    By Jedijacob in forum C Programming
    Replies: 5
    Last Post: 03-26-2005, 12:40 PM
  4. Stuck on random generating
    By Vegtro in forum C++ Programming
    Replies: 3
    Last Post: 10-01-2003, 07:37 PM
  5. stuck ky
    By JaWiB in forum Tech Board
    Replies: 2
    Last Post: 06-15-2003, 08:28 PM