diff options
author | ru <ru@FreeBSD.org> | 2005-05-23 10:46:22 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-05-23 10:46:22 +0000 |
commit | 212fa58b27874a1ac997e85e3f696ffad810e44c (patch) | |
tree | 3fc59092050a7fe0bd61c1e105cf78dc1c99d284 /contrib/texinfo/lib/substring.c | |
parent | 007f372a86653605d72852e22dcd423d0276786c (diff) | |
download | FreeBSD-src-212fa58b27874a1ac997e85e3f696ffad810e44c.zip FreeBSD-src-212fa58b27874a1ac997e85e3f696ffad810e44c.tar.gz |
Import of stripped down GNU texinfo 4.8
Diffstat (limited to 'contrib/texinfo/lib/substring.c')
-rw-r--r-- | contrib/texinfo/lib/substring.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/contrib/texinfo/lib/substring.c b/contrib/texinfo/lib/substring.c index 7d5cda7..9e59fce 100644 --- a/contrib/texinfo/lib/substring.c +++ b/contrib/texinfo/lib/substring.c @@ -1,7 +1,7 @@ /* substring.c -- extract substring. - $Id: substring.c,v 1.1 2002/08/25 23:38:38 karl Exp $ + $Id: substring.c,v 1.2 2004/04/11 17:56:46 karl Exp $ - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,13 +20,11 @@ #include "system.h" char * -substring (start, end) - char *start; - char *end; +substring (const char *start, const char *end) { char *result = xmalloc (end - start + 1); char *scan_result = result; - char *scan = start; + const char *scan = start; while (scan < end) *scan_result++ = *scan++; |