value of a char *ptr, lets say "test" to a char *arr[0]?
U want to store the address of that char pointer in an array or do u want to store value of that char pointer in the array?
int varHandle(char name[]) { for (int i = 0; i < var_counter; i++) { if(strcmp(vars[i], name) == 0){ return offsets[i]; } } return -1; }
Обсуждают сегодня