RE: Error Window Disappears Too Quickly

new topic     » topic index » view thread      » older message » newer message

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...

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu