Created
June 15, 2013 16:35
-
-
Save blaquee/5788672 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char* findtag(llist* p){ | |
//holds address to p | |
llist* nextp = p; | |
//traverse llist p | |
while(1){ | |
if(*nextp.tag == 0x41414100){ | |
//tag matches magic tag | |
//not sure if necessary but lets replace address of p with nextp, holding current tag/data | |
p = nextp; | |
//return the data at this index | |
return *p.data; | |
}else{ | |
//incrmement to next item in list | |
nextp = nextp.next; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment