unstr.c (81586) | unstr.c (90868) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Ken Arnold. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 31 unchanged lines hidden (view full) --- 40 The Regents of the University of California. All rights reserved.\n"; 41#endif /* not lint */ 42 43#ifndef lint 44#if 0 45static const char sccsid[] = "@(#)unstr.c 8.1 (Berkeley) 5/31/93"; 46#else 47static const char rcsid[] = | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Ken Arnold. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 31 unchanged lines hidden (view full) --- 40 The Regents of the University of California. All rights reserved.\n"; 41#endif /* not lint */ 42 43#ifndef lint 44#if 0 45static const char sccsid[] = "@(#)unstr.c 8.1 (Berkeley) 5/31/93"; 46#else 47static const char rcsid[] = |
48 "$FreeBSD: head/games/fortune/unstr/unstr.c 81586 2001-08-13 14:06:34Z ru $"; | 48 "$FreeBSD: head/games/fortune/unstr/unstr.c 90868 2002-02-18 20:35:27Z mike $"; |
49#endif 50#endif /* not lint */ 51 52/* 53 * This program un-does what "strfile" makes, thereby obtaining the 54 * original file again. This can be invoked with the name of the output 55 * file, the input file, or both. If invoked with only a single argument 56 * ending in ".dat", it is pressumed to be the input file and the output 57 * file will be the same stripped of the ".dat". If the single argument 58 * doesn't end in ".dat", then it is presumed to be the output file, and 59 * the input file is that name prepended by a ".dat". If both are given 60 * they are treated literally as the input and output files. 61 * 62 * Ken Arnold Aug 13, 1978 63 */ 64 65# include <sys/param.h> | 49#endif 50#endif /* not lint */ 51 52/* 53 * This program un-does what "strfile" makes, thereby obtaining the 54 * original file again. This can be invoked with the name of the output 55 * file, the input file, or both. If invoked with only a single argument 56 * ending in ".dat", it is pressumed to be the input file and the output 57 * file will be the same stripped of the ".dat". If the single argument 58 * doesn't end in ".dat", then it is presumed to be the output file, and 59 * the input file is that name prepended by a ".dat". If both are given 60 * they are treated literally as the input and output files. 61 * 62 * Ken Arnold Aug 13, 1978 63 */ 64 65# include <sys/param.h> |
66# include <arpa/inet.h> |
|
66# include <stdio.h> 67# include <ctype.h> 68# include <string.h> 69# include "strfile.h" 70 71char *Infile, /* name of input file */ 72 Datafile[MAXPATHLEN], /* name of data file */ 73 Delimch; /* delimiter character */ --- 72 unchanged lines hidden --- | 67# include <stdio.h> 68# include <ctype.h> 69# include <string.h> 70# include "strfile.h" 71 72char *Infile, /* name of input file */ 73 Datafile[MAXPATHLEN], /* name of data file */ 74 Delimch; /* delimiter character */ --- 72 unchanged lines hidden --- |