109:96a557abc364 | 110:13134ea30227 |
---|---|
38 | 38 |
39 int res=strncmp(d->key, nodekey, d->len); | 39 int res=strncmp(d->key, nodekey, d->len); |
40 | 40 |
41 return (res!=0 | 41 return (res!=0 |
42 ? res | 42 ? res |
43 : (nodekey[d->len]=='\0' ? 0 : 1)); | 43 : (nodekey[d->len]=='\0' ? 0 : -1)); |
44 } | 44 } |
45 | 45 |
46 | 46 |
47 StringId stringstore_find_n(const char *str, uint l) | 47 StringId stringstore_find_n(const char *str, uint l) |
48 { | 48 { |