ooxx.a = atoi(xxoo[0]); ooxx.b = atoi(xxoo[1]); for (i = 0; i < 100; ++i) { ooxx.c[i] = atoi(xxoo[i+2]) << 4 + atoi(xxoo[i+3]); } return 0;