1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
10 int strncmp( const char * src_1, const char * src_2, size_t n )
12 while ( ( n-- != 0 ) && ( *src_1 == *src_2 ) )
21 return ( *src_1 - *src_2 );