Original Post
i am a relative beginner. this is the problem. as i allocate memory for a string with malloc(), it messes up other parts of the memory. kinda like this: int ParseMaterial(char *temp, struct f *file, int mn, int on){ ... ... file->obj[on].materials[mn].name = (char *) malloc(name_length); /*at this point the data that the char *temp points to is screwed up, starting in random spots, but always leaving the start of the data intact*/ ... ... } im really confused by this, and am not quite sure what is causing the problem. if i could figure out what was causing the problem, im pretty sure i could fix it..thanks in advance.