Logo Search packages:      
Sourcecode: bglibs version File versions

int str_diff ( const str a,
const str b 
)

Differentiate two strings.

The first non-zero difference between a and b is returned. If a is longer than b and no differences are found up to the length of b, then the return value is positive. If b is longer than a and no differences are found up to the length of a, then the return value is negative.

Definition at line 29 of file diff.c.

References len, s, and str_diffb().

{
  return str_diffb(a, b->s, b->len);
}


Generated by  Doxygen 1.6.0   Back to index