string: add strsplit

This commit is contained in:
Michael Shaw 2023-05-09 23:00:07 -04:00
commit 14a681c53e
5 changed files with 45 additions and 3 deletions

View file

@ -21,7 +21,7 @@ static int printf_write(const char *restrict s)
}
/* this is seriously the approach i'm going with for now */
int snprintf(char *str, char *restrict fmt, size_t size, ...)
int snprintf(char *str, const char *restrict fmt, size_t size, ...)
{
int ret = 0;
char c;