Move the struct declaration to the header:
customer.h
typedef struct CustomerStruct
{
...
}
More Related Contents:
- Is there a way to use a typedef struct variable in a function…? [closed]
- typedef struct vs struct definitions [duplicate]
- self referential struct definition?
- Why should we typedef a struct so often in C?
- How to define a typedef struct containing pointers to itself?
- Opaque C structs: various ways to declare them
- What is ‘forward declaration’ and the difference between ‘typedef struct X’ and ‘struct X’?
- C typedef of pointer to structure
- C Typedef and Struct Question
- C : typedef struct name {…}; VS typedef struct{…} name;
- Why does “typdef struct { struct S *s; } S;” containing a pointer to same type compile?
- dereferencing pointer to incomplete type
- Why is this segfaulting? Can someone explain the valgrind error?
- free() not working correctly with struct
- Structure padding and packing
- When are anonymous structs and unions useful in C11?
- How do you compare structs for equality in C?
- Passing a 2D array of structs
- C struct initialization using labels. It works, but how?
- Why can’t C compilers rearrange struct members to eliminate alignment padding? [duplicate]
- Are there any downsides to passing structs by value in C, rather than passing a pointer?
- undefined reference when calling inline function
- Rationale behind the container_of macro in linux/list.h
- sizeof single struct member in C
- Why does C have a distinction between -> and .?
- Array of structs replacing values over itself
- Should variable definition be in header files?
- C initialize array within structure
- Iterating over same type struct members in C
- How can I malloc a struct array inside a function? Code works otherwise