hi, im just learning c and im trying to copy the token to a 2 dimension char array but the array( eq1[][] ) just gets filled with nulls. i cant figure out what im doing wrong...
if anyone could help me out id really appreciate itCode:void tokenize(void){ extern char equation[]; extern eq1[]; int i = 0; char *token; token = strtok( equation, " "); while ( token != NULL ){ printf( "token is %s\n", token); strcpy(eq1[i], token); token = strtok( NULL, " ") printf("eq is %s\n", eq1[i]); ++i; } }