Fri Mar 10 10:41:55 EST 2006 rsc I don't see why you need else{ *p++ = 0; *p = 0; } why can't you just use *p = 0 alone? Do you really want an embedded NUL in your string? Is that really going to work? Fri Mar 10 11:44:41 EST 2006 rsc never mind, i see that it's fine.