version 1.7, 2003/06/10 22:20:54 |
version 1.8, 2003/09/08 00:07:41 |
|
|
*/ |
*/ |
|
|
#ifndef lint |
#ifndef lint |
static char copyright[] = |
static const char copyright[] = |
"@(#) Copyright (c) 1989, 1993\n\ |
"@(#) Copyright (c) 1989, 1993\n\ |
The Regents of the University of California. All rights reserved.\n"; |
The Regents of the University of California. All rights reserved.\n"; |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
#ifndef lint |
#ifndef lint |
#if 0 |
#if 0 |
static char sccsid[] = "@(#)vis.c 8.1 (Berkeley) 6/6/93"; |
static const char sccsid[] = "@(#)vis.c 8.1 (Berkeley) 6/6/93"; |
#endif |
#endif |
static char rcsid[] = "$OpenBSD$"; |
static const char rcsid[] = "$OpenBSD$"; |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
#include <stdio.h> |
#include <stdio.h> |
|
|
|
|
int foldit(char *, int, int); |
int foldit(char *, int, int); |
void process(FILE *, char *); |
void process(FILE *, char *); |
|
__dead void usage(void); |
|
|
int |
int |
main(int argc, char *argv[]) |
main(int argc, char *argv[]) |
|
|
#endif |
#endif |
case '?': |
case '?': |
default: |
default: |
fprintf(stderr, |
usage(); |
"usage: vis [-nwctsobf] [-F foldwidth]\n"); |
|
exit(1); |
|
} |
} |
argc -= optind; |
argc -= optind; |
argv += optind; |
argv += optind; |
|
|
*/ |
*/ |
if (fold && *(cp-1) != '\n') |
if (fold && *(cp-1) != '\n') |
printf("\\\n"); |
printf("\\\n"); |
|
} |
|
|
|
__dead void |
|
usage(void) |
|
{ |
|
extern char *__progname; |
|
|
|
fprintf(stderr, "usage: %s [-cbflnostw] [-F [foldwidth]] [file ...]\n", |
|
__progname); |
|
exit(1); |
} |
} |