if (i<strlen(b)) i=strlen(b);
with:
for(s=b,k=0;*s;s++,k++)
{
if(s[0]=='@' && s[1]=='@' && isdigit(s[2]))
{
if(isdigit(s[3]) s++;
if(isdigit(s[3]) s++;
s+=2;
}
}
if(i<k) i=k;
Remembering to add the include for ctype.h and a 'char *s' at the
top of the function.
That should fix it, I would think...
(I haven't tested it, but if it doesn't work it should be easy to tweak)
Greg
-- Videogames, Unicycling, and Anarchism: http://www.cs.utah.edu/~galt/