Re: [PATCH] Solaris needs strings.h when using index().

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH] Solaris needs strings.h when using index().

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:23

"Peter Eriksen" [off-list ref] writes:
From: Peter Eriksen <redacted>
Date: Tue Apr 4 14:33:14 2006 +0200
Subject: [PATCH] Solaris needs strings.h when using index().

Signed-off-by: Peter Eriksen <redacted>
I think somebody else noticed this the other day but I'm
undecided if it is easier to replace use of index with strchr,
since we include <string.h> and use strchr() everywhere.

Re: [PATCH] Solaris needs strings.h when using index().

From: "H. Peter Anvin" <hpa@zytor.com>
Date: 2016-06-15 22:42:23

Junio C Hamano wrote:
"Peter Eriksen" [off-list ref] writes:
quoted
From: Peter Eriksen <redacted>
Date: Tue Apr 4 14:33:14 2006 +0200
Subject: [PATCH] Solaris needs strings.h when using index().

Signed-off-by: Peter Eriksen <redacted>
I think somebody else noticed this the other day but I'm
undecided if it is easier to replace use of index with strchr,
since we include <string.h> and use strchr() everywhere.
strchr() is definitely more portable.  The further away you get from BSD 
heritage, the less likely it is that you're going to see bzero, index, 
et al whereas anything even remotely modern has memset, strchr, etc.

	-hpa
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help