I keep getting the following message after completeing a function call and returning to the main subroutiney but bombs before I can choose to exit the program:
The value of ESP was not properly saved across a function call. This is usually the result of calling a function declared with one calling convention with a function pointer declared with a different
******************* END OF ERROR MSG ****
Code is simple, error occurs after running the largeNumber function below and after the program has returned. Note: the largeNumber function has not receiving or sending values.
char getMenuOption (void);
void largestNumber (void);
void diamond (void);
int main (void)
menuOption = getMenuOption();
case 'D' : diamond ();
case 'L' : largestNumber();
default : printf("\n\n***** GOODBYE *****\n");
printf("\nPress [Enter] to Continue ");
while (menuOption != 'Q');
void largestNumber (void)
...... code .......