mirror of
https://github.com/drasko/codezero.git
synced 2026-03-12 23:31:50 +01:00
Initial commit
This commit is contained in:
18
tasks/sigma0/channel.c
Normal file
18
tasks/sigma0/channel.c
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user