diff options
Diffstat (limited to 'src/lib.c')
-rw-r--r-- | src/lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -10,3 +10,8 @@ int smprintf (char ** str, const char * format, ...) { /* allocates automaticall va_end(aq); return len; } +char * startswith (char * testiranec, char * začetek) { + if (!strncmp(testiranec, začetek, strlen(začetek))) + return testiranec+strlen(začetek); + return NULL; +} |