0

String Function with Switch Case?

Supposed Output: Choose the String Function to demo: 1 Enter first string: Miko Enter second string: Santos Before function call: str1 = Miko str1 = Santos After concatenation/appending: str1 = MikoSantos str2 = Santos ********************************************* 1 - strcat() 2 - strncat() 3 - strcpy () 4 - strncpy () 5 - strlen () 6 - strcmp () 7 - strcmpi () 8 - 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:

17th Feb 2021, 10:08 AM
aecliam
aecliam - avatar
3 Respuestas
+ 2
Each those functions has different signature, and requires different argument(s). Not to mention some of them are non standard, which means they may not be available in standard compliant compilers. How do you deal with that?
17th Feb 2021, 10:19 AM
Ipang
0
I’m not really sure yet, but I know its a string function
17th Feb 2021, 10:54 AM
aecliam
aecliam - avatar
18th Feb 2021, 7:35 AM
aecliam
aecliam - avatar