diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-01-02 18:45:03 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-01-02 18:45:03 +0000 |
commit | 2d2813618c3818d7d41a7ced1fca4a1a01d3591d (patch) | |
tree | 0a376369b34e9959bf6c234331c325fc6b9cde60 /contrib/texinfo/lib/substring.c | |
parent | de90b09a791bc134afe2fbf8236e4482343122a7 (diff) |
Remove GNU texinfo from base along with all info pages.
To be able to info pages consider installing texinfo from ports print/texinfo or
via pkg: pkg install texinfo
Differential Revision: https://reviews.freebsd.org/D1409
Reviewed by: emaste, imp (previous version)
Relnotes: yes
Notes
Notes:
svn path=/head/; revision=276551
Diffstat (limited to 'contrib/texinfo/lib/substring.c')
-rw-r--r-- | contrib/texinfo/lib/substring.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/contrib/texinfo/lib/substring.c b/contrib/texinfo/lib/substring.c deleted file mode 100644 index 9e59fceefea2..000000000000 --- a/contrib/texinfo/lib/substring.c +++ /dev/null @@ -1,35 +0,0 @@ -/* substring.c -- extract substring. - $Id: substring.c,v 1.2 2004/04/11 17:56:46 karl Exp $ - - 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 - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - -#include "system.h" - -char * -substring (const char *start, const char *end) -{ - char *result = xmalloc (end - start + 1); - char *scan_result = result; - const char *scan = start; - - while (scan < end) - *scan_result++ = *scan++; - - *scan_result = 0; - return result; -} - |