Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can approximate an argument list using compound literals as long as 0/NULL is an acceptable default value. It's a bit noisy, but it works something like this if I remember right:

    result = foo(&(struct foo_args){.arg1 = 4, .arg7 = "2"})





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: