aboutsummaryrefslogtreecommitdiff
path: root/contrib/texinfo/lib/substring.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2005-05-23 10:46:22 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2005-05-23 10:46:22 +0000
commitb641f89e0854f71e850ba1353f4f1b96e04e4385 (patch)
tree3fc59092050a7fe0bd61c1e105cf78dc1c99d284 /contrib/texinfo/lib/substring.c
parent9456217d09f0616433b42ba7b4c1fa601f1a56e9 (diff)
Import of stripped down GNU texinfo 4.8
Notes
Notes: svn path=/vendor/texinfo/dist/; revision=146515
Diffstat (limited to 'contrib/texinfo/lib/substring.c')
-rw-r--r--contrib/texinfo/lib/substring.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/contrib/texinfo/lib/substring.c b/contrib/texinfo/lib/substring.c
index 7d5cda7bcae2..9e59fceefea2 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++;