aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/c_strings.h
blob: d9e871de7e552801fcc377e3081fffa9b397170c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

// Type info and methods for CString datatype, which represents C's `char*`

#include <stdbool.h>
#include <stdint.h>

#include "types.h"
#include "util.h"

Text_t CStringヽas_text(const char **str, bool colorize, const TypeInfo_t *info);
PUREFUNC int CStringヽcompare(const void *x, const void *y, const TypeInfo_t *type);
PUREFUNC bool CStringヽequal(const void *x, const void *y, const TypeInfo_t *type);
PUREFUNC uint64_t CStringヽhash(const void *str, const TypeInfo_t *type);

extern const TypeInfo_t CStringヽinfo;

// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0