Skip to content

Instantly share code, notes, and snippets.

View CheYulin's full-sized avatar

CHE Yulin CheYulin

  • Huawei
  • Shen Zhen
View GitHub Profile
@CheYulin
CheYulin / mapread.c
Created August 19, 2016 12:36 — forked from marcetcheverry/mapread.c
mmap and read/write string to file
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <unistd.h>
int main(int argc, const char *argv[])
{
@CheYulin
CheYulin / Makefile
Created August 10, 2016 23:57 — forked from jl2/Makefile
A simple trie data structure in C++.
trie: main.cpp Makefile
clang++ -O3 -std=c++11 -stdlib=libc++ -Wall -o trie main.cpp -lboost_system