   Quitting on time?!
  I'm having a problem in one of my programs, which is supposed to loop and fill the screen with values..The problem is that I need to quit the program before blowing up "over flow"..How is that done?I need to use the limits.h library to do that, and I've searched in some books and several websites but couldn't find an answer.I remember a website that has a database of C libraries and thier uses, does anyone know which website that is ?Thanks..   
Cpp reference has a list of C functions.This has some information about what is in limits.h here;  What exactly are you doing in this program? There are ways to loop forever without overflowing.while(1){    //fill screen with junk data call    DrawJunk();    //test for a keystroke or any other    //condition that could kill off the loop    if (CONDITION == TRUE) break;};  yeh you would want to do what vampyre said , but the CONDITION could be a function that is bool like bool CONDITION(int time);. but you would have to figure out how to make the timer.   ;Quote:Original post by Adam Gleasonyeh you would want to do what vampyre said , but the CONDITION could be a function that is bool like bool CONDITION(int time);. but you would have to figure out how to make the timer.I don't think this had anything to do with 'time'. You can only 'for-loop' so high before that int overflows.