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

#include <stdbool.h>
#include <uchar.h>
#include <time.h>

bool isword(char32_t wc, bool spaces_only, const char32_t *delimiters);

void timespec_sub(const struct timespec *a, const struct timespec *b, struct timespec *res);