here is the basic idea of my program, its a library takes a file of titles, BORROW, RETURN, SHELVE, lines each line indicating an operation. In my first implementation i used a 2d array to store my titles, and the number of titles was limited. Now i have to use malloc() to store the information. When i increase the size of allocated memory i start running into problems indirectly. For example, once i have done increased the size of the allocated memory i can print out the entire library without a problem. Then i can continuely access each element for searching purposes without a problem until a certain point. ie I would search the library maybe 3 times and on the third time when i try to access book 67 i get a segmentation fault. It seems to come from nowhere, a second ago i could access it and then suddenly i cant????? Has anyone had experience with a problem like this and might happen to know where the problems may lie? if you would like me to post my code i will, but im basically looking for someone that my have come across this problem before. Also, i programming in strictly ansi c if that matters. CHEERS