Skip to content

Instantly share code, notes, and snippets.

@camel-cdr
Created March 5, 2021 21:51
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 camel-cdr/574d21f88bca0d40f95ec71ff360330f to your computer and use it in GitHub Desktop.
Save camel-cdr/574d21f88bca0d40f95ec71ff360330f to your computer and use it in GitHub Desktop.
Remember kids, C's got namespaces.
struct list { struct list *list; };
struct list *
list(struct list *list)
{
list:
if (list->list && (list = list->list))
goto list;
return list;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment