Imprimez une partie de la chaîne C

int length = 5;
printf("%*.*s", length, length, "hello there");
Helpful Hummingbird