Help for a novice

hsl001 at muvms3.bitnet hsl001 at muvms3.bitnet
Wed Dec 6 22:29:49 AEST 1989


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 at MUVMS3  or HSL001%MUVMS3 at WVNVMS.WVNET.EDU



More information about the Comp.lang.c mailing list