aboutsummaryrefslogtreecommitdiff
path: root/misc.h
blob: 648bb65fe8d17b36c02e71ba690d9e83e90e340a (plain)
1
2
3
4
5
6
7
8
9
10
#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_add(const struct timespec *a, const struct timespec *b, struct timespec *res);
void timespec_sub(const struct timespec *a, const struct timespec *b, struct timespec *res);