Re: [OT] quick C struct void question
- Posted by jimcbrown (admin) Aug 29, 2015
- 1394 views
petelomax said...
Just showing my ignorance. Obviously something like:
typedef struct { void *p; } P;is fine (it is, isn't it? ).
Yes.
petelomax said...
I just quickly want to know what happens if you delete the *. It it illegal? Is it treated as a byte?
Pete
It's illegal.
pete.c:2: error: variable or field 'p' declared void