summaryrefslogtreecommitdiffstats
path: root/src/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.c')
-rw-r--r--src/lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.c b/src/lib.c
index e8d54b2..07d339d 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -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;
+}