Electrical and Computer Engineering
27 of 52
UAH
CPE 112
Additional string Operations
•Now, we consider four functions that operate on strings: length, size, find, substr
•The length and size functions both return an unsigned integer value equal to the number of characters in the string.
•The find function searches a string to find the first occurrence of a particular substring and returns an unsigned integer. If the substring is found, it returns the position where the match begins, if not found, it returns a special number.
•The substr function returns a particular substring of  a string.
–