Another important point if this is really a 'C' program:

You should post a full program, including headers that you included. The reason is that a C program will and can behave differently if headers are missing. If you post code with no headers (as you did in your initial post), then there is no telling how the program will behave.


Paul McKenzie