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
This will work too:
fwrite(str, 1, len, stdout);
It will not have the overhead of parsing the format specifier. Obviously, to adjust the beginning of the substring, you can simply add the index to the pointer.