So, I'm trying to get this program of mine to work, and I keep getting an access violation in this one chunk of code, and I can't figure out what's causing it. Can anyone help me out?
The chunk with the error (The debugger stops at "*emp[j++].digits = strtok(numbr[i], " ");"):
Code:int readnum(int stringnum, char* numbr, struct integer *emp){
char temp[0];
int arraysize = strlen(numbr);
int* numtemp = (int*)malloc(sizeof(int)*arraysize);
//Move the integer into the array
for(i=arraysize, j=0; i>-1; i--){
if(isdigit(numbr[i])){
*emp[j++].digits = strtok(numbr[i], " ");
}
}
};