about summary refs log tree commit diff stats
path: root/inc/sstring.h
blob: b11644abb048a664897695ae89b794ff9c5ec5f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef LIBSPICY_SSTRING_H
#define LIBSPICY_SSTRING_H

#include <stdlib.h>

typedef struct spicy_static_string
{
  size_t len;
  char buf[65536];
} sstring;

// I'll put this in later maybe.
// CBA to re-generate after git send-email somehow
// lost all of this.

int sassign(sstring* restrict dst, const sstring* restrict src);

int cassign(sstring* restrict dst, const char* restrict src);

size_t sstrlen(const sstring* str);

int sassign(sstring* restrict dst, const sstring* restrict src);

int cassign(sstring* restrict dst, const char* restrict src);

int sUPPER(sstring* str);

int slower(sstring* str);

sstring spicycat(const size_t count, ...);

sstring sstringup();




#endif