Say you read a string from a file:
aaaabbbbccccdddd
and no matter what the contents of the string you wish to copy the 5th through the 10th characters or maybe the 2nd through the 8th. In my example the 5th through the 10th characters would give "bbbbcc".
Is there a function similar to strncpy() that you can use, or is this something that you just have to throw some code together for to do? I have searched around and come up empty on the functions but figure its worth a shot to ask because this seems like something that would be in one of the libraries.