I am trying to remove leading/trailing whitespace characters with help below helper function. When compiling i am getting warning: array subscript has type ‘char’ [-Wchar-subsc
You can disable this warning with that compiler flag:
-Wno-char-subscripts