mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
19 lines
272 B
C
19 lines
272 B
C
|
|
struct channel {
|
|
int dir; /* Direction */
|
|
char *name; /* Name */
|
|
int cd; /* Channel descriptor */
|
|
};
|
|
|
|
|
|
struct interface {
|
|
struct channel chan[];
|
|
};
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
void *buf = malloc(sizeof(struct channel)*10);
|
|
struct interface *intf = buf;
|
|
}
|