potion
0.2
|
stuff written by other folks, seen on blogs, etc. More...
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "config.h"
#include <sys/mman.h>
Go to the source code of this file.
Macros | |
#define | ONEMASK ((size_t)(-1) / 0xFF) |
Functions | |
size_t | potion_cp_strlen_utf8 (const char *_s) |
wonderful utf-8 counting trickery by colin percival More... | |
void * | potion_mmap (size_t length, const char exec) |
int | potion_munmap (void *mem, size_t len) |
stuff written by other folks, seen on blogs, etc.
Definition in file contrib.c.
size_t potion_cp_strlen_utf8 | ( | const char * | _s | ) |
wonderful utf-8 counting trickery by colin percival
http://www.daemonology.net/blog/2008-06-05-faster-utf8-strlen.html