• 2024-11-12getopt解析命令行传参
    #include<stdio.h>#include<stdlib.h>#include<unistd.h>#include<string.h>#include<time.h>#defineSTRLENTH 1024intmain(intargc,char**argv){ intc; charstrfmt[STRLENTH]={0}; charstrTm[STRLENTH]={0}; FILE*fp=