Question: I need this function the language is C. - Returns a fresly allocated new zero-terminated string char *copy stin(char *instr, short len); You are returning

- Returns a fresly allocated new zero-terminated string char *copy stin(char *instr, short len); You are returning a freshly allocated zero-terminated string that copies over len characters from inStr. so you would use malloc to allocate enough memory for a new string that contains len characters and a null character
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
