1 #include <stdio.h> 2 #include "cmem.h" 3 4 int main(){ 5 char s[][10] = {"abc\n", "abc ", "abc\t", "abc\t\n", "abc"}; 6 7 for(size_t i = 0; i < sizeof(s) / sizeof(s[0]); i++) { 8 printf("%s:\n", strip_end(s[i])); 9 } 10 return 0; 11 }