Skip to content

Instantly share code, notes, and snippets.

@wenchy
wenchy / mapread.c
Created August 18, 2020 13:09 — 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[])
{
@wenchy
wenchy / Makefile
Last active January 7, 2016 08:12 — forked from isaacs/Makefile
A Makefile introduction and some useful snippets.
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.