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.

Implement strcmp() function in C

Write an efficient function to implement strcmp function in C. Standard strcmp() function compares the two strings and returns an integer indicating the relationship between the two strings.

Implement strncat() function in C

Write an efficient function to implement strncat function in C. Standard strncat() function appends appends first num characters of given C-string to the another string.