いいかおまいら!
strncpyはこう使え!

char mainBuf[]="Super Programer";
char subBuf[256];
strncpy(subBuf,mainBuf,6);
subBuf[6]='\0';