Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C language Do not use String library 15 points] int find (char *h, char *n) returns the index of the first occurrence of n

In C language
Do not use String library
image text in transcribed
15 points] int find (char *h, char *n) returns the index of the first occurrence of n in the string h or -1 if it isn't found. [5 points] char ptr_to(char *h, char *n) retums a pointer to the first occurrence of n in the string h or NULL if it isn't found 14 points] is_empty(char 's) returns 1 if s is NULL, consists of only the null character () or only whitespace. retums o otherwise [5 points] str-zip(char *s1, char *s2) Returns 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 "9) 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 strcmp_ign_case (char "sl, char *s2) Compares s1 and s2 ignoring case. Returns 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. [3 points] void take_last (char s, int n) f n is > the length Modifies s so that it consists of only its last n characters

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

a neglect of quality in relationship to international competitors;

Answered: 1 week ago

Question

1. Identify the sources for this conflict.

Answered: 1 week ago

Question

3. The group answers the questions.

Answered: 1 week ago