4.3BSD-UWisc/src/lib/libc/gen/telldir.c

Compare this file to the similar file:
Show the results in this format:

#if defined(LIBC_RCS) && !defined(lint)
static	char sccsid[] = "@(#)telldir.c 1.1 85/05/30 SMI";
#endif

#include <sys/param.h>
#include <sys/dir.h>

/*
 * return a pointer into a directory
 */
long
telldir(dirp)
	register DIR *dirp;
{

	return((dirp->dd_bbase * dirp->dd_bsize) + dirp->dd_entno);
}