author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Fri, 9 Nov 2007 00:49:36 +0000 (01:49 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 9 Nov 2007 09:30:07 +0000 (01:30 -0800) | ||
commit | 659c69cfef984e7416decc78841877207e9d5914 | |
tree | 498655e05588d18d81836f94ecd0de177ef610a6 | tree | snapshot |
parent | c238dad407aec1ccf6e364f9c95e10e7f84eac8f | commit | diff |
Add strchrnul()
As suggested by Pierre Habouzit, add strchrnul(). It's a useful GNU
extension and can simplify string parser code. There are several
places in git that can be converted to strchrnul(); as a trivial
example, this patch introduces its usage to builtin-fetch--tool.c.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
As suggested by Pierre Habouzit, add strchrnul(). It's a useful GNU
extension and can simplify string parser code. There are several
places in git that can be converted to strchrnul(); as a trivial
example, this patch introduces its usage to builtin-fetch--tool.c.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | diff | blob | history | |
builtin-fetch--tool.c | diff | blob | history | |
compat/strchrnul.c | [new file with mode: 0644] | blob |
git-compat-util.h | diff | blob | history |