RE: Error Window Disappears Too Quickly
- Posted by Andy Serpa <renegade at earthling.net> Sep 18, 2002
- 461 views
Tony Steward wrote: > Hi All, > If my prog gets an error and comes to an abort(1) command the dos window > > flashes so quickly I can't read it. I know I should be trapping the > errors > but am lazy at the moment and reading the error would be all I need. > > I use something like > puts(2, "Error message \n") > abort(1) > > how can I make the dos window wait for me? > > Thanks > Tony > > One easy way is: void = gets(0) before the abort. Then you just hit Enter...