about summary refs log tree commit diff homepage
path: root/runtime/klee-libc/strlen.c
blob: e298410caf1ff077ffc682ee69379f7fdb655367 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//===-- strlen.c ----------------------------------------------------------===//
//
//                     The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include <string.h>

size_t strlen(const char *str) {
  const char *s = str;
  while (*s)
    ++s;
  return s - str;
}