Hello,
gcc 4.4.4 c89
Not sure why I am getting this error.
In my header file I have the following
handle.h
typedef struct Handle_t Handle
In my implementation file
handle.c
struct Handle {
size_t id;
char *name;
};
Handle* create_handle(size_t id)
{
Handle *hdev = NULL;
hdev = malloc(sizeof(*hdev)); /* Error */
.
.
}
Many thanks for any suggestions,