Hi, I am trying to initialize the values in an array by using the following command:
*uint8_t i;* *uint8_t in[16] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};* * for (i=0; i<10; i++) {* * in[i] = i; }* However I am getting error message saying: *In component `TestAESC':* *TestAESC.nc:65: syntax error before `for'* *TestAESC.nc:65: syntax error before `<'* *TestAESC.nc:65: syntax error before `++'* The error messages go away as soon as I remove the for loop. Please let me know how to initialize the array. Thanks in advance for your time & effort. Regards, Nivedita Datta
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help