root/test/unit/strip_end/cmd.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. main

   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 }

/* [<][>][^][v][top][bottom][index][help] */