Question: Help with c please Write a function strcut to truncate a string after n characters. Sample executions of the function and the function prototype are
Write a function strcut to truncate a string after n characters. Sample executions of the function and the function prototype are given below. Y strcut ("Apple ", 5) returns "Apple" strcut ("An apple", 2) returns "An" strcut ("Apple 2", 3) returns "App" Complete the function below char *strcut(char str, int n) {}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
