Skip to content

Instantly share code, notes, and snippets.

@whymarrh
Created March 16, 2013 22:59
Show Gist options
  • Save whymarrh/5178692 to your computer and use it in GitHub Desktop.
Save whymarrh/5178692 to your computer and use it in GitHub Desktop.
A cool "tends to" operator in C (not actually).
#include <stdio.h>
#define as while
// as seen on Stack Overflow
// http://stackoverflow.com/q/1642028
int main(int argc, char **argv) {
int x = 42;
as (x --> 0) {
printf("%d\n", x);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment