“C Subcanding” Código de respuesta

C Subcanding

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

C Subcanding

//where we want the word "test" and we know its position in the string
char *buff = "this is a test string";
printf("%.*s", 4, buff + 10);
Grotesque Gazelle

Respuestas similares a “C Subcanding”

Preguntas similares a “C Subcanding”

Más respuestas relacionadas con “C Subcanding” en C

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código