/* ---------------------------------------------------------------------------- * ujguess.c * ---------------------------------------------------------------------------- * Mastering programmed by YAMASHINA Hio * * Copyright 2008 YAMASHINA Hio * ---------------------------------------------------------------------------- * $Id$ * ------------------------------------------------------------------------- */ #include "unijp.h" #include #include #include #include #define UJGUESS_VERSION "0.01" int main(int argc, const char* argv[]) { const char* files[10]; int end_of_opts; int nr_files; int no_filename; int show_filename; int i; nr_files = 0; end_of_opts = 0; no_filename = 0; show_filename = 0; for( i=1; i= 2 ) { show_filename = 1; }else { no_filename = 1; } } if( nr_files==0 ) { files[nr_files++] = "-"; } { char* buf; size_t buf_size; size_t buf_len; buf_len = 0; buf_size = 1024; buf = malloc(buf_size); if( buf==NULL ) { fprintf(stderr, "malloc: %s\n", strerror(errno)); return 1; } for( i=0; i