summaryrefslogtreecommitdiff
path: root/checkpasswd/str_len.c
blob: 5bd3f620003e4a49499c049529b0f6baf7476dd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "str.h"

unsigned int str_len(char *s)
{
  register char *t;

  t = s;
  for (;;) {
    if (!*t) return t - s; ++t;
    if (!*t) return t - s; ++t;
    if (!*t) return t - s; ++t;
    if (!*t) return t - s; ++t;
  }
}