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

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

- 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!