Giving write permission to 2D array

Oct 21, 2016 at 3:25 AM
Hi,

Is there any way to give write permission to a 2D array? Given an array arr[10][10], and specifying _(writes \array_range(&arr,100")) doesnt seems to work. Thanks.
typedef struct MyStruct {
    int a;
    int b;
} MyStruct;

static MyStruct arr[10][10];

void test() 
_(writes \array_range(&arr,100))
{
    arr[0][0].a = 1;
    arr[0][0].b = 2;
    arr[2][2].a = 3;
    arr[2][2].b = 4;
}