Mercurial > hg > CbC > old > examples
view struct-ptr-arg.c @ 5:709cdf828033
update tags
author | convert-repo |
---|---|
date | Mon, 08 Dec 2008 19:26:11 +0000 |
parents | e59ebf6fe2b0 |
children |
line wrap: on
line source
extern int printf(char*,...); struct interface { int i; int num; char **arg; code (*ret)(); void *env; }; void huga(struct interface *intf) { printf("%x\n", (unsigned long)intf); } int main() { struct interface a; struct interface *b=&a; printf("%x\n", (unsigned long)b); b->i=1; b->num=2; b->arg=(void*)3; b->ret=return; b->env=environment; huga(b); return(0); }