* Copyright (c) 1989 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)util.c 5.9 (Berkeley) %G%";
register char *src
, *dest
;
*dest
++ = isprint(ch
) ? ch
: '?';
if ((retval
= malloc(size
)) == NULL
)
err("%s", strerror(errno
));
(void)fprintf(stderr
, "usage: ls [-1ACFLRTacdfgiklqrstu] [file ...]\n");
err(const char *fmt
, ...)
(void)fprintf(stderr
, "ls: ");
(void)vfprintf(stderr
, fmt
, ap
);
(void)fprintf(stderr
, "\n");
warn(const char *fmt
, ...)
(void)fprintf(stderr
, "ls: ");
(void)vfprintf(stderr
, fmt
, ap
);
(void)fprintf(stderr
, "\n");