Subscribe

string.c

  1. 2008-12-10 05:27:37 PST
    Hi,
    I have looked into your string.c file. I feel the functions stringCompare and stringCompareData are redundant. It would have sufficient in stringCompare to write like,

    return stringCompareData(s1->data, s2->data);

    Please make use of size in stringCompare to avoid comparisions before hand.
    if(s1->size > s2->size) //do something
    like this


    Please correct me if i am wrong.

    Thanks a lot,
    Invisible
Jump To:
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.