X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Funistr.h;h=83ff13411dc79071d89705571310d139b975522c;hb=e29e19dce9e19be76fae92b0955d02c843333093;hp=0d2c19d98105e680a1dcb5808b84b8802b008b8f;hpb=9fe9fb071a6233e28f5ec54e1965d1e344f9ec6d;p=gnulib.git diff --git a/lib/unistr.h b/lib/unistr.h index 0d2c19d98..83ff13411 100644 --- a/lib/unistr.h +++ b/lib/unistr.h @@ -402,6 +402,15 @@ extern int extern int u32_cmp (const uint32_t *s1, const uint32_t *s2, size_t n); +/* Compare S1 and S2. */ +/* Similar to the gnulib function memcmp2(). */ +extern int + u8_cmp2 (const uint8_t *s1, size_t n1, const uint8_t *s2, size_t n2); +extern int + u16_cmp2 (const uint16_t *s1, size_t n1, const uint16_t *s2, size_t n2); +extern int + u32_cmp2 (const uint32_t *s1, size_t n1, const uint32_t *s2, size_t n2); + /* Search the string at S for UC. */ /* Similar to memchr(). */ extern uint8_t *