Is there a way to only print part of a string?
For example, if I have
char *str = \"hello there\";
Is there a way to just print
Try this:
int length = 5; printf("%*.*s", length, length, "hello there");