Skip to content

Instantly share code, notes, and snippets.

@Rushi98
Last active November 13, 2021 20:02
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 Rushi98/1f302574108e235b658333f1f7c85b1c to your computer and use it in GitHub Desktop.
Save Rushi98/1f302574108e235b658333f1f7c85b1c to your computer and use it in GitHub Desktop.
#include <stdio.h>
char s[] = {
'\t',
'0',
'\n',
'}',
';',
'\n',
'\n',
'i',
'n',
't',
' ',
'm',
'a',
'i',
'n',
'(',
')',
' ',
'{',
'\n',
'\t',
'p',
'r',
'i',
'n',
't',
'f',
'(',
'"',
'#',
'i',
'n',
'c',
'l',
'u',
'd',
'e',
' ',
'<',
's',
't',
'd',
'i',
'o',
'.',
'h',
'>',
'\\',
'n',
'\\',
'n',
'c',
'h',
'a',
'r',
' ',
's',
'[',
']',
' ',
'=',
' ',
'{',
'\\',
'n',
'"',
')',
';',
'\n',
'\t',
'f',
'o',
'r',
' ',
'(',
'i',
'n',
't',
' ',
'i',
' ',
'=',
' ',
'0',
';',
' ',
'i',
' ',
'<',
' ',
'1',
'5',
'2',
';',
' ',
'i',
'+',
'+',
')',
' ',
'{',
'\n',
'\t',
'\t',
'p',
'r',
'i',
'n',
't',
'f',
'(',
'"',
'\\',
't',
'%',
'd',
',',
'\\',
'n',
'"',
',',
' ',
's',
'[',
'i',
']',
')',
';',
'\n',
'\t',
'}',
'\n',
'\t',
'p',
'r',
'i',
'n',
't',
'f',
'(',
'"',
'%',
's',
'"',
',',
' ',
's',
')',
';',
'\n',
'}',
'\n',
0
};
int main() {
printf("#include <stdio.h>\n\nchar s[] = {\n");
for (int i = 0; i < 152; i++) {
printf("\t%d,\n", s[i]);
}
printf("%s", s);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment