Skip to content

Instantly share code, notes, and snippets.

@niner
niner / test.c
Last active January 2, 2016 11:33 — forked from bpetering/test.c
#include <stdio.h>
#include <stdlib.h>
struct foo {
int x;
};
void foo_init(struct foo **f) {
*f = malloc(sizeof(struct foo));
printf("malloc'd, pointer = %p\n", (void *) *f);