📅  最后修改于: 2022-03-11 15:04:44.728000             🧑  作者: Mango
//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);