I have made the changes recommended above...Most of the function prototypes were provided by the instructor, and we had to implement them using his defined pre and post conditions. Some of the code may seem overly complex because of this.


As far as atoi goes...I could not get it to work...

Code:
p->digits[counter]=atoi(stringInt[counter]);
so I decided to subtract a '0' and get the same result.

This code was quite a leap from the topics covered in Programming 1 (where we barely even touched on pointers, and covered what a struct was in the last day of class)

Maybe some of the code can help someone who i having trouble passing structs to functions, returning pointers to structs from functions, using malloc, or realloc.

It would have certainly saved me a lot of time!

Thanks again, any other advice is welcome.