first 10 char:
sprintf(outbuff,"%.10s",inbuff);
10 char starting by 3 char 0f inbuff:
sprintf(outbuff,"%.10s",&inbuff[3]);
or if pointers:
sprintf(outbuff,"%.10s",inbuff+3);
-----------
when they don't ask you anymore, where they are come from, and they don't tell you anymore, where they go ... you'r getting older !