options.c (36049) | options.c (46684) |
---|---|
1/*- 2 * Copyright (c) 1992 Keith Muller. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Keith Muller of the University of California, San Diego. 8 * --- 26 unchanged lines hidden (view full) --- 35 * SUCH DAMAGE. 36 */ 37 38#ifndef lint 39#if 0 40static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94"; 41#endif 42static const char rcsid[] = | 1/*- 2 * Copyright (c) 1992 Keith Muller. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Keith Muller of the University of California, San Diego. 8 * --- 26 unchanged lines hidden (view full) --- 35 * SUCH DAMAGE. 36 */ 37 38#ifndef lint 39#if 0 40static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94"; 41#endif 42static const char rcsid[] = |
43 "$Id$"; | 43 "$Id: options.c,v 1.11 1998/05/15 06:27:43 charnier Exp $"; |
44#endif /* not lint */ 45 46#include <sys/types.h> 47#include <sys/stat.h> 48#include <sys/mtio.h> 49#include <stdio.h> 50#include <string.h> 51#include <unistd.h> --- 847 unchanged lines hidden (view full) --- 899 pax_usage(); 900 return(0); 901} 902 903/* 904 * opt_add() 905 * breaks the value supplied to -o into a option name and value. options 906 * are given to -o in the form -o name-value,name=value | 44#endif /* not lint */ 45 46#include <sys/types.h> 47#include <sys/stat.h> 48#include <sys/mtio.h> 49#include <stdio.h> 50#include <string.h> 51#include <unistd.h> --- 847 unchanged lines hidden (view full) --- 899 pax_usage(); 900 return(0); 901} 902 903/* 904 * opt_add() 905 * breaks the value supplied to -o into a option name and value. options 906 * are given to -o in the form -o name-value,name=value |
907 * mulltiple -o may be specified. | 907 * multiple -o may be specified. |
908 * Return: 909 * 0 if format in name=value format, -1 if -o is passed junk 910 */ 911 912#if __STDC__ 913int 914opt_add(register char *str) 915#else --- 226 unchanged lines hidden --- | 908 * Return: 909 * 0 if format in name=value format, -1 if -o is passed junk 910 */ 911 912#if __STDC__ 913int 914opt_add(register char *str) 915#else --- 226 unchanged lines hidden --- |