summaryrefslogtreecommitdiff
path: root/kernel/libc/string/strlen.c
blob: a4a096a7e9527a11b97d3d9d1d412eed973d9c04 (plain)
1
2
3
4
5
6
7
8
#include "../include/string.h"

unsigned long strlen(const char *s) {
  const char *tmp = s;
  for (; *tmp++;)
    ;
  return (tmp - s) - 1;
}