Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Buggy Strcat
#include <iostream> #include <string.h> const char* strcat(const char* a, const char* b) { char buf[512]; size_t aLen = strlen(a); strcpy(buf, a); strcpy(buf+aLen, b); return buf; } int main() { const char* a = "hello, "; const char* b = "world"; std::cout << strcat(a, b) << std::endl; return 0; }
run
|
edit
|
history
|
help
0
post_decrement_example
algorithm_1
Program_1_rstring
Arrays
1
VC++ Template Comment
cross-platform sleep function
Kare-Küp Tablosu
Attribute of qi parsers
ExtThes_Uniquify