Download Pelles C here: http://www.smorgasbordet.com/pellesc/
int ParseFile(char *pMem, int nSize, char *szFile, int nLen, int nIdx)
{
char *pPtr, *pPtr1, *pPtr2;
pPtr = strstr(pMem, "api_name:"); // CRT
//pPtr = StrStr(pMem, "api_name:"); // shlwapi.dll
if (pPtr) {
printf("%s\t", szFile);
pPtr += 9; // pass
while (*pPtr != 10) pPtr++;
pPtr++;
pPtr1 = pPtr;
pPtr2 = pPtr;
//*(pPtr+10) = 0;
do {
while (*pPtr2 != 10) pPtr2++;
*pPtr2 = 0; // cut to newline
printf("%s ", pPtr1);
pPtr2++;
pPtr1 = pPtr2;
} while (*pPtr2 == '-');
printf("\n");
} else printf("%s\n", szFile);
return 0;
}
Page created in 3.125 seconds with 15 queries.