Skip to content

Instantly share code, notes, and snippets.

@zid

zid/spatial.c Secret

Created July 17, 2023 19:46
Show Gist options
  • Save zid/e82ad9f32f3ced93b0703ff812cd6ec3 to your computer and use it in GitHub Desktop.
Save zid/e82ad9f32f3ced93b0703ff812cd6ec3 to your computer and use it in GitHub Desktop.
c = get();
if(c != '$')
return 1;
c = get();
if(c != '%')
return 2;
while((c = get()) && isalnum(c))
{
*reg++ = c;
}
if(c != '[')
return 3;
*isalnum loop*
*check for =*
*isalnum loop*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment