Hello, i really need help. I want to append a single char into a char* that i have..how do i do that? Is it even possible?
Seems that strcat isn't possible for this, i get an error when i run this.Code:char temp[5] =""; while(isalnum(*x)) { strcat(temp,*x); x++; } enqueue(&head,temp);
The situation is i have a Queue which has a char* as a variable, because i want to store some string there. And then i have a char* to be read, and if the char it is pointing to is alphanumeric, i want it to append to temp and after all that, enqueue it.
Help guys?![]()



LinkBack URL
About LinkBacks




