Mercurial > hg > Members > masakoha > testcode
view c/dfaTobin/main.cc @ 46:e13aac1cff0f
fix
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 21 May 2015 23:30:54 +0900 |
parents | 89a198fa6b23 |
children | 3d59066744d8 |
line wrap: on
line source
#include <stdio.h> int main(int argc, char *argv[]){ char *regex = 0; for (int i = 1; argv[i]; ++i) { if (strcmp(argv[i], "-file") == 0){ regex = argv[i+1]; } } if (regex == 0){ puts(usr_help_str); exit(1); } return 0; }