confusing array of structs
Code:
static const struct iw_ioctl_description standard_ioctl[] = { Can somebody help me out? Thanks |
By the C standard from 1999 (which isn't too widely used even yet), one can initialize `not-atomic object' (i.e. arrays, structs and unions) by writing
Code:
<how to access the member> = <value> Code:
struct { Code:
struct { Code:
static int array99[10] = {[1] = [1], [3] = 2}; So, your specific code just initializes specific members of your array with struct values where specific components are given values. hth --Jonas Unrelated: you can also cast brace-notation to structs without it being used in an initializer: Code:
static struct point |
All times are GMT -5. The time now is 05:24 PM. |