Skip to content

Instantly share code, notes, and snippets.

@io12
Created August 19, 2017 15:50
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 io12/f283915a9a0d3ad730f2226a0cc33fc7 to your computer and use it in GitHub Desktop.
Save io12/f283915a9a0d3ad730f2226a0cc33fc7 to your computer and use it in GitHub Desktop.
#include <limits.h>
#include <stdio.h>
int main(void)
{
int i, j, c;
printf("typedef void (*a)(void);\n");
for (i = 0; i < 25; i++) {
c = i + 'a';
printf("typedef %c (*%c)(", c, c + 1);
for (j = 0; j < INT_MAX; j++) {
putchar(c);
if (j != INT_MAX - 1) {
printf(", ");
}
}
printf(");\n");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment