/* * Copyright (c) 1989 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 5.13 (Berkeley) 04/29/93"; #endif /* not lint */ #include #include #include #include #include #include #include #include "ls.h" #include "extern.h" void prcopy(src, dest, len) register char *src, *dest; register int len; { register int ch; while(len--) { ch = *src++; *dest++ = isprint(ch) ? ch : '?'; } } void usage() { (void)fprintf(stderr, "usage: ls [-1ACFLRTacdfiklqrstu] [file ...]\n"); exit(1); }