Opened 17 years ago
Last modified 17 years ago
#348 closed defect
Various bugs in string comparison functions — at Initial Version
Reported by: | bennylp | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-0.8.0 |
Component: | pjlib | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: |
Description
Bug in pj_strcmp2() will cause pj_strcmp2("1", "12") to return equal.
Checking other string functions reveals that some string comparison functions are not exactly compliant with ANSI. For example, given:
char *s1 = "2"; char *s2 = "11";
With ANSI, strcmp(s1, s2) will return 1, while with pj_strcmp(s1, s2) will return -1.
Note: See
TracTickets for help on using
tickets.