Question: In C language Without using String library [5 points] str_zip(char s1, char s2) Retuns a new string consisting of all of the characters of s1
[5 points] str_zip(char s1, char s2) Retuns a new string consisting of all of the characters of s1 and s2 interleaved with each other. For example, if s1 is "spongebob" and s2 is "Patrick, the function returns the string "SPpaotnrgiecbkob" 15 points] void capitalize (char s) Changes s so that the first letter of every word is in upper case and each additional letter is in lower case. .[5 points] int stremp_ign_case (char *sl, char "s2) Compares s1 and s2 ignoring case. Retuns a positive number if s1 would appear after s2 in the dictionary, a negative number if it would appear before s2, or O if the two are equal. 13 points] void take_last (char *s, int n) Modifies s so that it consists of only its last n characters. If n is 2 the length of s, the original string is unmodified. For example if we call take_last("Brubeck" 5), when the function finishes, the original string becomes "ubeck [5 points] dedup (char s) retums a new string based on s, but without any duplicate characters. For example, if s is the string, "There's always money in the banana stand.", the function retuns the string "Ther's alwymonitbd. ". It is up to the caller to free the memory allocated by the function. [5 points] pad (char "s, int d) returns a new string consisting of all of the letters of s, but padded with spaces at the end so that the total length of the retumed string is an even multiple of d. If the length of s is already an even multiple of d, the function retums a copy of s. The function returns NULL on failure or if s is NULL. Otherwise, it returns the new string. It is
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
