This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int | |
foo_generichash(unsigned char *out, size_t outlen, const unsigned char *in, | |
unsigned long long inlen) | |
{ | |
unsigned long long i; | |
for (i = 0; i < inlen; i++) { | |
out[i] = in[i]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |