Skip to content

Instantly share code, notes, and snippets.

@dmoulding
dmoulding / iostream
Created October 3, 2011 16:40
It's a C program!
#include <stdio.h>
#define using char
#define namespace const
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static char * append (char *field, size_t *size, size_t *len, char c);
static size_t get_field (char **field, size_t *size, FILE *file);
static char const * strip_field (char *field, size_t len);
static bool end_of_file = false;