Skip to content

Instantly share code, notes, and snippets.

View OlivierLDff's full-sized avatar

Olivier Le Doeuff OlivierLDff

View GitHub Profile
@OlivierLDff
OlivierLDff / bin2c.c
Last active October 29, 2018 16:23 — forked from albertz/bin2c.c
bin2c
// https://gist.github.com/albertz/1551304
#include <stdio.h>
#include <assert.h>
int main(int argc, char** argv) {
assert(argc == 2);
char* fn = argv[1];
FILE* f = fopen(fn, "r");
printf("char a[] = {\n");