snippets: Added trim function snippets (C/C++)