Why reinventing the wheel? When you have string.h supported by every C compiler on the planet?
Well, at least most of you really "tried" to make it without string.h, unlike debuger2004, who said:
Why??? If you're planning to use strlen(), and already included the string.h, then just use strcat(), and strcpy() as well... Damn!program to concat without using strcpy and strcat functions