how to get part of string in C code example Example: c substring char subbuff[5]; memcpy( subbuff, &buff[10], 4 ); subbuff[4] = '\0';