String library

pull/23/head
E. Almqvist 3 years ago
parent 1c76279e1e
commit 828b7c1321
  1. 6
      src/kernel/lib/string.c

@ -1,2 +1,8 @@
// Generic String Library
#define INDEX(s, c) (int)(c-s)
unsigned int length(char* str) {
char* p;
for( p = str; *p != '\0'; p++ ) {}
return (unsigned int)(p-str);
}

Loading…
Cancel
Save