Hi,

I want to find out the size of a structure which the user will give as an 
argument 
as follows.

#include <>  -- All includes..
..
main(int arc, char *argv[])
{
printf("Size of structure %s is: %d\n", argv[1], sizeof(struct argv[1]));
}

However, I'm unable to compile. It's giving:
"sizeof applied to an incomplete type".

How can I get it working.

Thanks,
Vikas

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" 
in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to