3 #include "oswald_strings.h"
5 uint16_t oswald_strlen(char *string)
12 while (string[i] != 0) i++;
17 char *itoa(int16_t value, char* result, int base)
19 char *ptr = result, *ptr1 = result, tmp_char;
25 // check that the base if valid
26 if (base < 2 || base > 36) {
34 *ptr++ = "zyxwvutsrqponmlkjihgfedcba9876543210123456789abcdefghijklmnopqrstuvwxyz" [35 + (tmp_value - value * base)];
37 // Apply negative sign