mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-01 03:18:09 +03:00
Use libffi for library calls
Use libffi to portably call arbitrary functions at runtime, rather than forcing library functions to use a standard prototype.
This commit is contained in:
@@ -235,6 +235,12 @@ void string_erase(struct string **s, int index)
|
||||
(*s)->text[(*s)->size] = '\0';
|
||||
}
|
||||
|
||||
void string_clear(struct string *s)
|
||||
{
|
||||
s->size = 0;
|
||||
s->text[0] = '\0';
|
||||
}
|
||||
|
||||
int string_find(const struct string *haystack, const struct string *needle)
|
||||
{
|
||||
int c = 0;
|
||||
|
||||
Reference in New Issue
Block a user