Hi Steve
uStrcmp() is a library replacement for
strcmp(). It is therefore compatible with
strcmp().
The idea behind the library replacement routines is simply to avoid libraries in small project. More info here:
http://www.utasker.com/docs/CodeDoc/lib_intro.htmHaving said that, the
uStrcpy() is not fully compatible with
strcpy() since it returns not a pointer to the original string but to the end of the copied string since this is rather mode useful (I don't expect anyone to otherwise use the return pointer to the same string that was passed...).
Therefore an extension to inform whether the differing character in the string has a lower ASCII value does seem to be of use in some cases (when sorting strings in alphabetic order) so I will look at integrating this. The criteria is still that
uStrcmp() should essentially be compatible with
strcmp() but the check
!uStrcmp() would still be fine, just additional checking of < 0 would give further information about the string's alphabetic order.
Thanks.
Regards
Mark