aboutsummaryrefslogtreecommitdiff
path: root/slice.h
blob: b61ce3e9a37e651bee0f6004d5e66508929f01ea (plain)
1
2
3
4
5
6
7
8
#pragma once

#include <stddef.h>

struct slice {
	const char *ptr;	/* should not be allocated or freed */
	size_t len;		/* length of ptr */
};