J
jack
As a C beginner,I want to ask a "silly" question about typedef:
IS
typedef [something1] [something2]
means " someting1 is something2"
SUCH AS
typedef struct node{
int a;
int b;
} NODE;
show us NODE is struct node {...} ,when we met NODE, we should take
is as struct node{...} ,no problem.
but what about
typedef void* pthread_addr_t;
typedef void* (*pthread_startroutine_t) (void*);
when we met pthread_addr_t or (*pthread_startroutine_t) (void*)
we take it as void* ?
IS
typedef [something1] [something2]
means " someting1 is something2"
SUCH AS
typedef struct node{
int a;
int b;
} NODE;
show us NODE is struct node {...} ,when we met NODE, we should take
is as struct node{...} ,no problem.
but what about
typedef void* pthread_addr_t;
typedef void* (*pthread_startroutine_t) (void*);
when we met pthread_addr_t or (*pthread_startroutine_t) (void*)
we take it as void* ?