summaryrefslogtreecommitdiff
path: root/src/util/string_view.h
blob: 82f7b0c79476cdc9b22b88a69d6c226c57877312 (plain)
1
2
3
4
5
6
7
8
9
10
#pragma once

#include <stddef.h>


// A non-owned view on a (sub)string.
struct string_view {
  char *s;
  size_t len;
};