about summary refs log tree commit diff homepage
path: root/runtime/klee-libc/strlen.c
blob: 33846134ff4e033424cd16798a5df4322bda4260 (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;
}