Question: MUST BE DONE IN C LANGUAGE. Cannot use anything except #include also cant use strcmp(), memcmp(), memcpy() and so on... no more than 30 lines

MUST BE DONE IN C LANGUAGE. Cannot use anything except #include also cant use strcmp(), memcmp(), memcpy() and so on... no more than 30 lines of code. and no main. thank you!

 MUST BE DONE IN C LANGUAGE. Cannot use anything except #include

You are to implement a simple function with the following type declaration: int strednocase (const char *a, const char *b); Your implementation must satisfy all of the following constraints: The definition of strednocase must match the declaration above exactly. It returns 1 if and only if either (1) both a and b are equal to NULL, or (ii) neither is NULL, and each points to an array of chars (bytes) containing the same null-terminated sequence of characters, ignoring case. For example: - streqnocase ("ABC", "abc") returns 1 - streqnocase (NULL, NULL) returns 1 - streqnocase (NULL, "abc") returns 0 - strednocase ("0123$/-","0123$/-") returns 1 - strednocase ("0123$/8","0123$/!") returns 0 - streqnocase ("a555#Bd", "A555#b") returns 0 Your code must work for string arguments of arbitrary length. Your code must not make any assumptions about the input strings, except that they are null-terminated. Your code should work for string constants, which are read-only in C. Your code must not read past the null terminator of the string

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!