i did a search but couldn't really find an exact answer. i need to create a double linked list for my program, which i've only done single before. i know you have to put a previous pointer but i forgot that i should probably make it point back to the previous structure (yeah i know i'm dumb) but i really don't know how to do that. i attempted putting
current->next->prev=current
right after i allocated space for the next structure. but that didn't work. it was all i could think of. probably doesn't even make sense. i'd appreciate any help. thank you