So '\0' in this case is more strict, right?
Type: Posts; User: woozy
So '\0' in this case is more strict, right?
Oh~~~damn it...Thank you so much Dave.
And btw, I thought NULL can represent '\0'
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...
Hi citizen,
Thank you for your advice. I'm not yet trying to optimize anything, but to implement some algorithm.
:)
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...
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...
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)
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...