Hi, i have a char * which points to a buffer which i get from the recv function. I want to treat this buffer like a stack for parsing, and after each argument is parsed it is popped from the stack. For example
Code:char parseByte(char * buffer) { char ret = *buffer; free(buffer) //dont want to have the char allocated any more; buffer = buffer + 1; //now how do i allocate the rest of *buffer back to buffer so the OS doesnt write over them return ret; }