rename to regnsub, regsub is a very popular name.

This commit is contained in:
christos 2016-01-14 21:45:01 +00:00
parent 9ff00cbafe
commit baf7db8b0f
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.8 2016/01/14 20:41:47 christos Exp $
# $NetBSD: Makefile.inc,v 1.9 2016/01/14 21:45:01 christos Exp $
# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
# regex sources
@ -11,4 +11,4 @@ SRCS+= regcomp.c regerror.c regexec.c regfree.c regsub.c
MAN+= regex.3 re_format.7
MLINKS+=regex.3 regcomp.3 regex.3 regexec.3 regex.3 regerror.3 \
regex.3 regfree.3 regex.3 regsub.3 regex.3 regasub.3
regex.3 regfree.3 regex.3 regnsub.3 regex.3 regasub.3

View File

@ -1,4 +1,4 @@
/* $NetBSD: regsub.c,v 1.1 2016/01/14 20:41:47 christos Exp $ */
/* $NetBSD: regsub.c,v 1.2 2016/01/14 21:45:01 christos Exp $ */
/*-
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: regsub.c,v 1.1 2016/01/14 20:41:47 christos Exp $");
__RCSID("$NetBSD: regsub.c,v 1.2 2016/01/14 21:45:01 christos Exp $");
#include <sys/param.h>
#include <ctype.h>
@ -148,7 +148,7 @@ regsub1(char **buf, size_t len, const char *sub,
}
ssize_t
regsub(char *buf, size_t len, const char *sub, const regmatch_t *rm,
regnsub(char *buf, size_t len, const char *sub, const regmatch_t *rm,
const char *str)
{
return regsub1(&buf, len, sub, rm, str);