Skip to content

Instantly share code, notes, and snippets.

@blaquee
Created June 15, 2013 18:05
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 blaquee/5788999 to your computer and use it in GitHub Desktop.
Save blaquee/5788999 to your computer and use it in GitHub Desktop.
char* userBuf(llist* p)
{
while(1){
//reached end of list
if(p->next == 0){return 0;}
if(p->tag == 0x41414100)
{
//increment
return p->data;
}else{
p = p->next;
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment