strtrim implementation in C - No Talking - Task Based

A simple string trimmer function in C Task Function name strtrim Prototype char *strtrim(char const *s1, char const *set); Parameters s1: The string to be trimmed. set: The reference set of characters to trim. Return value The trimmed string. NULL if the allocation fails. Description Allocates (with malloc(3)) and returns a copy of 's1' with the characters specified in 'set' removed from the beginning and the end of the string. Happy coding. My Equipments 💻Huawei Matebook 13 🖱️Logitech M100