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

char *strcpy(char *to, const char *from) {
  char *start = to;

  while ((*to = *from))
    ++to, ++from;

  return start;
}