Category: C

Implement substr function in C

Write an efficient function to implement substr function in C. substr() function returns the substring of given string between two given indices.