Cetak bagian dari string C

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