Question: Make the following string manipulation functions Requirement. Do not use the original c - str library, such as strcpy , strlen, strcat Do not use
Make the following string manipulation functions
Requirement.
Do not use the original cstr library, such as strcpy
strlen, strcat
Do not use the string type. The parameter is the character
array.
Your code ought to be implemented to function in the same manner as the
original library functions.
int mycstrlenchar mycstr;
Parameters
character array mycstr
Return value
int length: the number of mycstr
Tasks
count all characters in the character array until the n or character
int mycstrcpychar dest, char src;
Parameters
dest: the destination character array to be created from src
src: the source character array
Return value
int length: the number of characters copied length
Tasks
Copy all characters in the src array to dest array
int mycstrcatchar dest, char src;
Parameters
dest: the destination character array to be appended from src
src: the source character array
Return value
int length: the number of characters after concatenation length
Tasks
concatenate the src array to the dest array.
void printRecordchar people NL;
Parameters
people: dimensional character array
Return value
None
Tasks
Print all records for each people
void printEmailchar peopleNL;
Parameters
people: dimensional character array
Return value
None
Tasks
Print all email list
int getNumMalechar peopleNL;
Parameters
people: dimensional character array
Return value
int: the number of male persons
Tasks
Check the field value peoplei whether "Male" is or not
C only.
Image is the question to the program so please read the instructions carefully c only
Image is the code template that you will use.
Image is the main.cpp there is no need to edit this but in case you need it
Image is the database that the program is supposed to access. It has lines but I couldn't fit the rest in the image.
Image are the tests for the program.
Please do not create an entirely new code, use the code provided in the nd image to create the code so that it passes all tests in image and do what is asked and I'll upvote your answer.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
