Skip to content

Instantly share code, notes, and snippets.

@mitchfriedman
Created April 1, 2015 03:45
Show Gist options
  • Save mitchfriedman/90f2e0f5222d35ccb97b to your computer and use it in GitHub Desktop.
Save mitchfriedman/90f2e0f5222d35ccb97b to your computer and use it in GitHub Desktop.
void printList(Food * theList) // maybe something is weird here? Idk, mostly for
{
struct Food * curPos;
char * tempStr;
if (isEmpty(theList) == true)
printf("Error: there is no record to print.\n");
curPos = theList;
while (curPos)
{
tempStr = printRecord(curPos);
printf("%s\n", tempStr);
curPos = curPos->next;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment