This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Don't call strchr with the NULL character.
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: "Andrew Burgess" <aburgess at broadcom dot com>
- Cc: "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 11 Jul 2013 18:24:25 +0200
- Subject: Re: [PATCH] Don't call strchr with the NULL character.
- References: <51DEDA0E dot 8020809 at broadcom dot com>
"Andrew Burgess" <aburgess@broadcom.com> writes:
> My local manpage for strchr doesn't say what happens in this case,
7.24.5.2 The strchr function
... The terminating null character is considered to be part of the
string.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."