Description: Basic operation string
Let the elements of character string data, write a function to achieve the following:
(1) her series: Given a string s, find which start from the beginning of the specified location, the length of len substring and returns. For example: s = abcdefg , start = 2, len = 3, then intercepted substring cde .
(2) Delete substring: Given a string s, beginning from the first position pos, delete substring of length len. For example: s = abcdefg , start = 2, len = 3, then deleted, s becomes as abfg .
(3) insert substring: Given two strings s1 and s2, and specify the location pos, s2 inserted after the first pos s1 s. For example: s1 = abcdefg , s2 = xyz , pos = 3, after the completion of insertion, s1 becomes abcdxyzefg .
(4) string substitution: Given strings s1 and s2, and specify the location pos, will be in s1 (s2 equal length) from the pos-b
To Search:
File list (Check if you may need any files):
ds10.c