Logo Search packages:      
Sourcecode: bglibs version File versions

int str_cmp ( const str a,
unsigned  aoffset,
const str b,
unsigned  boffset 
)

Compare part of two strings.

This function compares two strings, starting at aoffset bytes into a and boffset bytes into b. The first non-zero difference is returned. If the portion of b is longer than the portion of a, the result is positive.

Definition at line 28 of file cmp.c.

References len, s, and str_cmpb().

{
  return str_cmpb(a, aoffset, b->s+boffset, b->len-boffset);
}


Generated by  Doxygen 1.6.0   Back to index