Skip to content

Instantly share code, notes, and snippets.

@kylelk
Created December 31, 2013 06:48
Show Gist options
  • Save kylelk/8193468 to your computer and use it in GitHub Desktop.
Save kylelk/8193468 to your computer and use it in GitHub Desktop.
code_gen.c
#include <stdio.h>
#define WIDTH 10
int main()
{
int n;
int count=0;
printf("{");
for (n = 0; n <99; n++)
{
if(count==WIDTH){printf("\n"); count=0;}
printf("0, ");
count++;
}
printf("0}");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment