source: trunk/essentials/sys-apps/diffutils/lib/prepargs.c@ 3137

Last change on this file since 3137 was 2556, checked in by bird, 20 years ago

diffutils 2.8.1

File size: 2.7 KB
Line 
1/* Parse arguments from a string and prepend them to an argv.
2
3 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18 02111-1307, USA. */
19
20/* Written by Paul Eggert <[email protected]>. */
21
22#ifdef HAVE_CONFIG_H
23# include <config.h>
24#endif
25#include "prepargs.h"
26#include <string.h>
27#include <sys/types.h>
28#include <xalloc.h>
29
30#include <ctype.h>
31
32/* IN_CTYPE_DOMAIN (C) is nonzero if the unsigned char C can safely be given
33 as an argument to <ctype.h> macros like "isspace". */
34#ifdef STDC_HEADERS