Search:

Type: Posts; User: woozy

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,062

    So '\0' in this case is more strict, right?

    So '\0' in this case is more strict, right?
  2. Replies
    5
    Views
    2,062

    Oh~~~damn it...Thank you so much Dave. And...

    Oh~~~damn it...Thank you so much Dave.

    And btw, I thought NULL can represent '\0'
  3. Replies
    5
    Views
    2,062

    Convert String to Lower Case Crashed

    Here I am again, and here is another question.

    Again I'm trying to write replacement functions of exist ones in order to understand how C works. Here is my function, and it supposed to do a string...
  4. Hi citizen, Thank you for your advice. I'm not...

    Hi citizen,

    Thank you for your advice. I'm not yet trying to optimize anything, but to implement some algorithm.

    :)
  5. Now I've done a replacement for strcmp(), and...

    Now I've done a replacement for strcmp(), and also I found the source code of strcmp() in the standard lib...

    I wonder which one is more efficient

    mine:


    int my_strcmp(char *str1, char...
  6. Then the other purpose fails - which is to sort...

    Then the other purpose fails - which is to sort these word strings into lexicographical order.

    But anyways, I agree with both of ya, I'll try to write a replacement for strcmp first, then later on...
  7. Actually the purpose of what I'm doing here is to...

    Actually the purpose of what I'm doing here is to understand the algorithm of strcmp.

    So yeah, I'd rather not use it and keep on trying (and keep on trying to ask too ;p)
  8. Sort strings in lexicographical order but no built-in string functions allowed

    After many advices, helps, I could eventually solve this problem myself, happy~~:D

    All I did was to write a replacement function for strcmp() and then use a bubble sort function to sort input...
Results 1 to 8 of 8