ok i changed that line to this
Code:
p = (struct details *)realloc(p,(entry*(sizeof(struct details))));
but now when i try to load a file or add data it exits the program. i cant understand why it would do that