Choose the String Function to demo:1 Enter first string: Miko Enter second string: Santos Before function call: stri- Miko str2 - Santos After concatenation/appending: stri - Mikosantos str2 - Santos strca strc - stre 10 striwr( strupr() 14 strrev() 15- strset (). 16- strnset() 17- strtok() 18 Exit Choose the String Function to demo: • 2 is selected. Demonstrate about strncat() function. Then d CAUserslissaiDesktop\FLEX SY2020-20212nd SemINPR211C codes StringFunctions.ese Choose the String Function to demo: 2 Enter first string: Miko Enter second string: Santos how many characters to append: 4 Before function call: stri- Miko str2 - Santos After appending 4 characters stri - Mikosant str2 - Santos 1- strcat() 2- strncat () - strcpy() 4- strncpy() 5-strlen() 6- strcmp() 7-strcapi(() 8- strchr() - strrchr() 10- strstr() 11- strdup() 12- strlwrÖ 13- struprO 14 strrev() 15 strset () 16- strnset () 17- strtok() 18 Exit Choose the String Function to deno:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Create a menu type driven function to demonstrate the different built-in String Functions in C Library. Refer to the desired outputs below: 

 

Please answer this immediately. Thank you!

 

 

CAUserslissai Desktop\FLEX SY2020-2021\2nd Sem\INPR211\C codes\StringFunctions.exe
Choose the String Function to demo: 1
Enter first string: Miko
Enter second string: Santos
Before function call:
stri - Miko
str2- Santos
After concatenation/appending:
stri - Mikosantos
str2 - Santos
1- strcat ()
2-strncat()
3- strcpy()
strncpy()
strlen()
6- strcmp()
7- strcmpi()
8- strchr()
9- strrchr()
10 - strstr()
11-
strdup()
12
striwr()
13-strupr()
14 strrev()
15- strset ()
16 strnset ()
17 - strtok()
18 - Exit
Choose the String Function to demo:
• 2 is selected. Demonstrate about strncat() function. Then display again the menu.
CAUserslissa Desktop\FLEX SY2020-2021\2nd SemINPR211NC codes\StringFunctions.ex e
Choose the String Function to demo: 2
Enter first string: Miko
Enter second string: Santos
how many characters to append: 4
Before function call:
stri - Miko
str2- Santos
After appending 4 characters
stri - Mikosant
str2 - Santos
1- strcat()
2- strncat ()
3- strcpy()
strncpy()
S-strlen()
6- strcmp()
strcmpi()
8-strchr()
9- strrchr()
10- strstr()
11- strdup()
2- striwr)
13- strupr()
14- strrev()
15- strset ()
16- strnset()
17 - strtok()
18 - Exit
Choose the String Function to demo:
Note: The program should terminate once 18 for Exit is entered. Check the String Function lecture in
Canvas modules as guide for the inputs and outputs.
Compile all the screenshots / photo in a word document with descriptions. Submit also the .c file.
Transcribed Image Text:CAUserslissai Desktop\FLEX SY2020-2021\2nd Sem\INPR211\C codes\StringFunctions.exe Choose the String Function to demo: 1 Enter first string: Miko Enter second string: Santos Before function call: stri - Miko str2- Santos After concatenation/appending: stri - Mikosantos str2 - Santos 1- strcat () 2-strncat() 3- strcpy() strncpy() strlen() 6- strcmp() 7- strcmpi() 8- strchr() 9- strrchr() 10 - strstr() 11- strdup() 12 striwr() 13-strupr() 14 strrev() 15- strset () 16 strnset () 17 - strtok() 18 - Exit Choose the String Function to demo: • 2 is selected. Demonstrate about strncat() function. Then display again the menu. CAUserslissa Desktop\FLEX SY2020-2021\2nd SemINPR211NC codes\StringFunctions.ex e Choose the String Function to demo: 2 Enter first string: Miko Enter second string: Santos how many characters to append: 4 Before function call: stri - Miko str2- Santos After appending 4 characters stri - Mikosant str2 - Santos 1- strcat() 2- strncat () 3- strcpy() strncpy() S-strlen() 6- strcmp() strcmpi() 8-strchr() 9- strrchr() 10- strstr() 11- strdup() 2- striwr) 13- strupr() 14- strrev() 15- strset () 16- strnset() 17 - strtok() 18 - Exit Choose the String Function to demo: Note: The program should terminate once 18 for Exit is entered. Check the String Function lecture in Canvas modules as guide for the inputs and outputs. Compile all the screenshots / photo in a word document with descriptions. Submit also the .c file.
String Functions
Create a menu type driven function to demonstrate the different built-in String Functions in C Library.
Refer to the desired outputs below:
Display the menu and ask the user to choose.
CAUsers\issai\Desktop\FLEX SV2020-2021\2nd SemUNPR211.
strcat()
2- strncat ()
3-strcpy()
strncpy()
strlen()
6
strcmp()
strcmpi()
strchr()
9
strrchr()
10
strstr()
11
strdup()
12 - strlwr()
13 strupr()
14 strrev()
15
strset ()
16
strnset ()
17 - strtok()
18 Exit
Choose the String Function to demo:
1 is selected. Demonstrate about strcat() function. Then display again the menu.
Transcribed Image Text:String Functions Create a menu type driven function to demonstrate the different built-in String Functions in C Library. Refer to the desired outputs below: Display the menu and ask the user to choose. CAUsers\issai\Desktop\FLEX SV2020-2021\2nd SemUNPR211. strcat() 2- strncat () 3-strcpy() strncpy() strlen() 6 strcmp() strcmpi() strchr() 9 strrchr() 10 strstr() 11 strdup() 12 - strlwr() 13 strupr() 14 strrev() 15 strset () 16 strnset () 17 - strtok() 18 Exit Choose the String Function to demo: 1 is selected. Demonstrate about strcat() function. Then display again the menu.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY