SyntaxFix
Write A Post
Hire A Developer
Questions
Use strncpy
e.g.
strncpy(dest, src + beginIndex, endIndex - beginIndex);
This assumes you've
dest
endIndex
beginIndex
strlen(src)