C: Functions with custom type in header : I've written a program that uses three functions to which I pass a custom type defined as:

        typedef struct w 
        {
            char *wd;
            long position;
            struct w *next;
        }W;
        typedef W *word;

When I try to put the functions in a header file like this:

 

        void find(char *s,word *T);
        void seek(char *s,word p);
        void look(word p);

and try to compile di file I get

> error: unknown type name ‘word’

 How do I fix it?