- const char *pch;
- char buf[SIZ];
- StrBuf *Buf;
- int i, len;
-
- pch = strstr(ChrPtr(cookie), "webcit=");
-
- if (pch != NULL)
- StrBufCutLeft(cookie, (pch - ChrPtr(cookie)) + 7);
-
- strcpy(buf, "");
- len = StrLength(cookie) / 2;
- pch = ChrPtr(cookie);
- for (i=0; i<len; ++i) {
- buf[i] = xtoi(&pch[i*2], 2);
- buf[i+1] = 0;
- }
- Buf = NewStrBufPlain(buf, i);
-