I think you really should rely on gcc + option like -ansi -std=c89 in order to debug this code. I don't know how old is your HP compiler But it appears to be a little buggy. If you use gcc you might be able to reach a standard and useful code. regards, -- Pierre-Matthieu Anglade