blob: 7e15a52b3723ce6e7db31f8c54bf7354492bbe7c (
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
|
#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
|