> dest[d++]='0'; > dest[d++]='x'; OK I haven't touched C since my collage days (long, long ago) but are you incrementing a pointer here? :wq Tim Uckun Due Diligence Inc. http://www.diligence.com/ Americas Background Investigation Expert. If your company isn't doing background checks, maybe you haven't considered the risks of a bad hire.