[PATCH v2 1/3] add strnncmp() function

2014-06-17 Thread Jeremiah Mahler
Add a strnncmp() function which behaves like strncmp() except it takes the length of both strings instead of just one. It behaves the same as strncmp() up to the minimum common length between the strings. When the strings are identical up to this minimum common length, the length difference is

Re: [PATCH v2 1/3] add strnncmp() function

2014-06-17 Thread Torsten Bögershausen
On 2014-06-17 09.34, Jeremiah Mahler wrote: Add a strnncmp() function which behaves like strncmp() except it takes the length of both strings instead of just one. It behaves the same as strncmp() up to the minimum common length between the strings. When the minimum common length? Isn'n t that

Re: [PATCH v2 1/3] add strnncmp() function

2014-06-17 Thread Erik Faye-Lund
On Tue, Jun 17, 2014 at 9:34 AM, Jeremiah Mahler jmmah...@gmail.com wrote: Add a strnncmp() function which behaves like strncmp() except it takes the length of both strings instead of just one. It behaves the same as strncmp() up to the minimum common length between the strings. When the

Re: [PATCH v2 1/3] add strnncmp() function

2014-06-17 Thread Jeremiah Mahler
Torsten, On Tue, Jun 17, 2014 at 10:23:14AM +0200, Torsten Bögershausen wrote: On 2014-06-17 09.34, Jeremiah Mahler wrote: Add a strnncmp() function which behaves like strncmp() except it takes the length of both strings instead of just one. It behaves the same as strncmp() up to the

Re: [PATCH v2 1/3] add strnncmp() function

2014-06-17 Thread Jeremiah Mahler
Erik, On Tue, Jun 17, 2014 at 11:09:59AM +0200, Erik Faye-Lund wrote: On Tue, Jun 17, 2014 at 9:34 AM, Jeremiah Mahler jmmah...@gmail.com wrote: Add a strnncmp() function which behaves like strncmp() except it takes the length of both strings instead of just one. It behaves the same as

Re: [PATCH v2 1/3] add strnncmp() function

2014-06-17 Thread Junio C Hamano
Jeremiah Mahler jmmah...@gmail.com writes: Add a strnncmp() function which behaves like strncmp() except it takes the length of both strings instead of just one. It behaves the same as strncmp() up to the minimum common length between the strings. When the strings are identical up to this

Re: [PATCH v2 1/3] add strnncmp() function

2014-06-17 Thread Jeremiah Mahler
Junio, On Tue, Jun 17, 2014 at 10:55:18AM -0700, Junio C Hamano wrote: Jeremiah Mahler jmmah...@gmail.com writes: Add a strnncmp() function which behaves like strncmp() except it takes the length of both strings instead of just one. It behaves the same as strncmp() up to the minimum