repo.or.cz
/
haiku.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
headers/bsd: Add sys/queue.h.
[haiku.git]
/
src
/
system
/
libroot
/
posix
/
string
/
strcpy.c
blob
f4e8140c9f8cafa8644c168e06f7f32f1f84537a
1
/*
2
** Copyright 2001, Travis Geiselbrecht. All rights reserved.
3
** Distributed under the terms of the NewOS License.
4
*/
5
6
#include <sys/types.h>
7
#include <string.h>
8
9
10
char
*
11
strcpy
(
char
*
dest
,
char const
*
src
)
12
{
13
char
*
tmp
=
dest
;
14
15
while
((*
dest
++ = *
src
++) !=
'\0'
)
16
;
17
return
tmp
;
18
}
19