トークンの処理を推敲
[YACASL2.git] / test / unit / strip_end / cmd.c
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(int i = 0; i < sizeof(s) / sizeof(s[0]); i++) {
8         printf("%s:\n", strip_end(s[i]));
9     }
10     return 0;
11 }