Hello,
Forward declaration in C
I am wondering if this is the correct way to do forward declaration in C.
I would like to hide the data in my implementation file.
*.h header file
*.c implemenationCode:typedef struct HANDLES; HANDLES *_handles; HANDES* handles() { return _handles; }
in my main program which includes *.hCode:typedef struct HANDLES { int hDialer; int hDevice; };
Is this the correct way to do this.Code://setting the hDevice handle handles().hDevice = 101012;
Many thanks,