BlueGrey
calm
Elegant
Català-Valencià – Catalan
中文 – Chinese (Simplified)
中文 – Chinese (Traditional)
Česky – Czech
Dansk – Danish
Nederlands – Dutch
English – English
Suomi – Finnish
Français – French
Deutsch – German
עברית – Hebrew
हिंदी – Hindi
Magyar – Hungarian
Bahasa Indonesia – Indonesian
Italiano – Italian
日本語 – Japanese
한국어 – Korean
Македонски – Macedonian
मराठी – Marathi
Norsk – Norwegian
Polski – Polish
Português – Portuguese
Português – Portuguese (Brazil)
Русский – Russian
Slovenčina – Slovak
Slovenščina – Slovenian
Español – Spanish
Svenska – Swedish
Türkçe – Turkish
Українська – Ukrainian
Oëzbekcha – Uzbek
Subversion Repositories
Kolibri OS
(root)
/
programs
/
develop
/
ktcc
/
trunk
/
libc.obj
/
samples
/
string_test.c
@ 9867
– Rev 9766
Rev
Rev 9620
|
Blame
|
Compare with Previous
|
Last modification
|
View Log
|
Download
|
RSS feed
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sys/ksys.h>
int
main
(
int
argc
,
char
**
argv
)
{
char
hello1
[
]
=
"Hello, KolibriOS!"
;
char
hello2
[
20
]
;
memcpy
(
hello1
,
hello2
,
strlen
(
hello1
)
)
;
if
(
!
__strcmp
(
hello1
,
hello2
)
)
{
printf
(
"memcpy: Successfully!
\n
"
)
;
return
0
;
}
else
{
printf
(
"memcpy: Failure
\n
"
)
;
return
-
1
;
}
}