Duane Beck wrote: >> cnt was undefined. > cnt was declared on the same line as num. > char cnt, num; Yep. That's what I get for relying on my memory instead of looking at the code itself. :o( Marty