summaryrefslogtreecommitdiffstats
path: root/contrib/texinfo/lib/substring.c
diff options
context:
space:
mode:
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 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++;
OpenPOWER on IntegriCloud