Skip to content

Instantly share code, notes, and snippets.

@karupanerura
Created January 28, 2019 14:36
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 karupanerura/f7c560cfdc00bb28e124545b0d1460d7 to your computer and use it in GitHub Desktop.
Save karupanerura/f7c560cfdc00bb28e124545b0d1460d7 to your computer and use it in GitHub Desktop.
list include
"foo", "bar", "baz"
#include <stdio.h>
int main(void) {
char *list[3] = {
#include "list.inc"
};
for (int i = 0; i < 3; i++) {
printf("list[%d]: %s\n", i, list[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment