quakeforge/ruamoko/include/string.h
Bill Currie 45d23ce521 [libr] Add bindings for new string functions
And correct str_free's return type.
2020-03-26 16:49:09 +09:00

20 lines
752 B
C

#ifndef __ruamoko_string_h
#define __ruamoko_string_h
@extern int strlen (string s);
@extern string sprintf (string fmt, ...);
@extern string vsprintf (string fmt, @va_list args);
@extern string str_new (void);
@extern void str_free (string str);
@extern string str_hold (string str);
@extern int str_valid (string str);
@extern int str_mutable (string str);
@extern string str_copy (string dst, string src);
@extern string str_cat (string dst, string src);
@extern string str_clear (string str);
@extern @overload string str_mid (string str, int start);
@extern @overload string str_mid (string str, int start, int len);
@extern string str_str (string haystack, string needle);
@extern int str_char (string str, int ind);
#endif//__ruamoko_string_h