* Copyright (c) 1982, 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
* @(#)ls.c 7.1 (Berkeley) 6/5/86
printf(": "); gets(line
);
while (read(io
, (char *)&d
, sizeof d
) == sizeof d
) {
for (i
=0; i
<DIRSIZ
; i
++) {
printf("%c", d
.d_name
[i
]);