From bedd2e7ccb1595c23e159eaa952ae1b0b5a3d2ad Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sat, 15 Mar 2014 01:49:50 +0100 Subject: Lean and mean initial commit Not much functionality yet --- bstrfirst.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 bstrfirst.c (limited to 'bstrfirst.c') diff --git a/bstrfirst.c b/bstrfirst.c new file mode 100644 index 0000000..4d8ab02 --- /dev/null +++ b/bstrfirst.c @@ -0,0 +1,6 @@ +#include "bstr.h" +#include "uint32.h" + +const char* bstrfirst(const char* a) { + if (*a) return a; else return a+5; +} -- cgit v1.2.3-55-g7522