xrxs/server/util.h

20 lines
No EOL
575 B
C

typedef unsigned long long uvlong;
typedef struct Blob Blob;
uvlong hash(char* str, int array_sz);
char clca(char c);
char cuca(char c);
int slen(char* str);
char* st__(char* str, char (*fn)(char c));
char* stuc(char* str);
char* stlc(char* str);
char* scpy(char* src, char* dst, int len);
int scmp(char* a, char* b);
char* scsw(char* str, char a, char b);
char* scat(char* dst, const char* src);
int ssin(char* str, char* substr);
char* ccat(char* dst, char c);
Blob* read_bytes(char* path);
Blob* read_chars(char* path);
void itoa(int, char*, int);
int rm_dir(char* path);