4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / lib / libc / gen / rewinddir.c
CommitLineData
40b41cc0
KB
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 */
7
8#if defined(LIBC_SCCS) && !defined(lint)
74155b62 9static char sccsid[] = "@(#)rewinddir.c 8.1 (Berkeley) %G%";
40b41cc0
KB
10#endif /* LIBC_SCCS and not lint */
11
12#include <sys/types.h>
13#include <dirent.h>
14
15void
16rewinddir(dirp)
17 DIR *dirp;
18{
19 extern long _rewinddir;
20
21 _seekdir((dirp), _rewinddir);
22 _rewinddir = telldir(dirp);
23}