C Substring

char subbuff[5];
memcpy( subbuff, &buff[10], 4 );
subbuff[4] = '\0';
Plimpton