diff options
| author | Simon Tatham <anakin@pobox.com> | 1999-10-24 17:14:16 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 1999-10-24 17:14:16 +0000 |
| commit | 8e0e3ac1481ea8c84aa2a0dbfb23bbb3d7700a0c (patch) | |
| tree | b93bc282935b99bb8176c91784a7d61d35925222 /ustring.c | |
| parent | 3cb5a6f58a56ca01547558e7b4543bf98fc25e1b (diff) | |
| download | halibut-8e0e3ac1481ea8c84aa2a0dbfb23bbb3d7700a0c.zip halibut-8e0e3ac1481ea8c84aa2a0dbfb23bbb3d7700a0c.tar.gz halibut-8e0e3ac1481ea8c84aa2a0dbfb23bbb3d7700a0c.tar.bz2 halibut-8e0e3ac1481ea8c84aa2a0dbfb23bbb3d7700a0c.tar.xz | |
Macros; \- for nonbreaking hyphen
[originally from svn r252]
Diffstat (limited to 'ustring.c')
| -rw-r--r-- | ustring.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -48,6 +48,9 @@ wchar_t *ustrcpy(wchar_t *dest, wchar_t *source) { } int ustrcmp(wchar_t *lhs, wchar_t *rhs) { + if (!lhs && !rhs) return 0; + if (!lhs) return -1; + if (!rhs) return +1; while (*lhs && *rhs && *lhs==*rhs) lhs++, rhs++; if (*lhs < *rhs) |