Skip to content

Instantly share code, notes, and snippets.

@silv3rm00n
Created December 22, 2011 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silv3rm00n/1510016 to your computer and use it in GitHub Desktop.
Save silv3rm00n/1510016 to your computer and use it in GitHub Desktop.
response_2 = response;
printf("BEFORE : %s" , response_2);
pch = strtok(response , "\n");
while(pch != NULL)
{
//Check if whois line
wch = strstr(pch , "whois.");
if(wch != NULL)
{
break;
}
//Next line please
pch = strtok(NULL , "\n");
}
printf("AFTER : %s" , response_2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment