Name: Anonymous 2007-07-23 6:35 ID:S8qiyQdD
Can i do this in C?
Is it allowed? my compiler does not complain.
The reason i am asking this is because i want to write a getopt in the form of a macro using #define.
In order for this to work like getopt(3) it needs to be maed of exprzionz
so yeah, is it a good idea to write a macro'd getopt()?
also, what about i = (1, 2)?
int i = (1, 2); /* i gets the value of the last evaluated expression - that is 2 */Is it allowed? my compiler does not complain.
The reason i am asking this is because i want to write a getopt in the form of a macro using #define.
In order for this to work like getopt(3) it needs to be maed of exprzionz
so yeah, is it a good idea to write a macro'd getopt()?
also, what about i = (1, 2)?