/* * Copyright (c) 1989, 1993, 1994 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Michael Fischbein. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)util.c 8.4 (Berkeley) 07/28/94"; #endif /* not lint */ #include #include #include #include #include #include #include #include "ls.h" #include "extern.h" void prcopy(src, dest, len) char *src, *dest; int len; { int ch; while (len--) { ch = *src++; *dest++ = isprint(ch) ? ch : '?'; } } void usage() { (void)fprintf(stderr, "usage: ls [-1ACFLRTWacdfiklqrstu] [file ...]\n"); exit(1); }