summaryrefslogtreecommitdiff
path: root/compat/strchrnul.c
AgeCommit message (Collapse)AuthorFilesLines
2007-11-09Add strchrnul()Libravatar René Scharfe1-0/+8
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>