Skip to content

Instantly share code, notes, and snippets.

@lasarus
Created August 27, 2012 15:41
Show Gist options
  • Save lasarus/3489642 to your computer and use it in GitHub Desktop.
Save lasarus/3489642 to your computer and use it in GitHub Desktop.
digraphs in C
%:include <stdio.h>
int main(int argc, char ** argv)
<%
int i;
char array<:8:> = <% 'H', 'E', 'L', 'L', 'O', '!', '\n', '\0' %>;
for(i = 0; array<:i:>; i++)
fputc(array<:i:>, stdout);
return 0;
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment