Search:

Type: Posts; User: Phantom2303

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,507

    Using strcpy?

    I have 2 strings.
    char* a = "hi";
    char* b = "";

    How can I use strcpy to copy string a to string b?
    please provide me the codes and give me explanation if possible.
    Thank you very much.
  2. Check if a string is a positive integer, please help.

    How can I check if a string is a positive integer in C, with nothing else attached with it?

    I have tried using atoi(), but atoi would still give me a legit value(not 0)
    even if the string is...
Results 1 to 2 of 2