### Question 16.4

I have a program that seems to run correctly, but it crashes as it's exiting, after the last statement in `main()`. What could be causing this?

Look for a misdeclared `main()` (see questions 2.18 and 10.9), or local buffers passed to `setbuf` or `setvbuf`, or problems in cleanup functions registered by `atexit`. See also questions 7.5 and 11.16.

References: CT&P Sec. 5.3 pp. 72-3

Read sequentially: prev next up top

This page by Steve Summit // Copyright 1995 // mail feedback