Skip to content

Instantly share code, notes, and snippets.

View hokamoto's full-sized avatar

Hideki Okamoto hokamoto

View GitHub Profile
@hokamoto
hokamoto / gist:4072938
Last active October 12, 2015 18:58
Comparison between naive string concatenation and better one
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define SIZE 100000
int main() {
int i;
char *buffer;
buffer = (char*) malloc(sizeof (char) * (SIZE + 1));