MCPcopy Create free account
hub / github.com/numpy/numpy / STRING_LT

Function STRING_LT

numpy/core/src/npysort/npysort_common.h:279–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277
278
279static inline int
280STRING_LT(const char *s1, const char *s2, size_t len)
281{
282 const unsigned char *c1 = (const unsigned char *)s1;
283 const unsigned char *c2 = (const unsigned char *)s2;
284 size_t i;
285 int ret = 0;
286
287 for (i = 0; i < len; ++i) {
288 if (c1[i] != c2[i]) {
289 ret = c1[i] < c2[i];
290 break;
291 }
292 }
293 return ret;
294}
295
296
297static inline void

Callers 1

lessMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected