Question: Write a strtrim function using the provided interface that trims the whitespace off the front and back of any null terminated cstring. Must work on

Write a strtrim function using the provided interface that trims the whitespace off the front and back of any null terminated cstring. Must work on all strings including but not limited to nullptr, empty strings, and lank strings. The function must work with heap allocated strings. The return must be identical to the input parameter. Be sure your function passes the provided test cases Your strtrim function may only use methods found in the following headers: #include \
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
