[comp.lang.c] Help for a novice

hsl001@muvms3.bitnet (12/06/89)

I'm a total novice at C. I'm trying to compile a program which 
has the following code in it:

	#include <stdio.h>
	#include <sys/types.h>
	#include <sys/dir.h>
	#include <sys/errno.h>
	#include <sys/param.h>
	#include <sys/stat.h>
	#include <fcntl.h>

	extern int errno;
	long lseek();

	int
	closedir(dirp)
	  register DIR *dirp;
	{
	  register int result;
	  register int err;

	if (dirp == 0) {
		.
		.
		.

The line causeing the error is "register DIR *dirp;". The error listed is
	"Line .. Declared argument DIR is missing."
Anything which refers to "DIR" or "dirp" in later code is flagged as
an error.

What's going on? How can I fix this? Anyhelp would be appreciated.


ed dzierzak        HSL001@MUVMS3  or HSL001%MUVMS3@WVNVMS.WVNET.EDU