/*広告*/
/*[簡易ソフト開発] ソースHTML置換C言語ソース*/
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char *argv[]){ int ch; int file_name_length; char extension[5] = {0}; char extension2[] = ".txt"; char str[1024] = "java -classpath ./class CodeToHTML "; int i; if (argc == 2){ file_name_length = strlen(argv[1]); for (i = 0; i < 5; i++){ extension[i] = *(argv[1] + (file_name_length + (i - 4))); } if(strcmp(extension, extension2) == 0){ strcat(str, argv[1]); system(str); } else{ printf("error"); ch = getchar(); } } else{ printf("error"); ch = getchar(); } return 0; }/*Copyright 2016 K.N/petitetech.com*/
/*広告*/