HI. > for (; *so && *so!='}'; *so++); This line should probably read for (; *so && *so!='}'; so++); so that the pointer will be incremented, and not its contents... -- ==> Ciao, Mosu (Moritz Bunkus)