rendered paste body# include <stdio.h># include <fcntl.h># include <unistd.h># include <stdlib.h>extern char *optarg;extern int optind, opterr, optopt;char in[64],out[64], *err;double fps=0;int i=0,f1, f2, c,n,line=0;char buf[BUFSIZ];main(int argc, char *argv[]){if (argc != 7){ printf("%s: usage: -i input -o output -f fps\n",argv[0]); return 1;}while((c=getopt(argc, argv, "i:o:f:"))>=0){ switch(c){ case 'i': strcpy(in,optarg); printf("Opcion i: %s\n",in); break; case 'o': strcpy(out,optarg); printf("Opcion o: %s\n",out); break; case 'f': fps=atof(optarg); printf("Opcion f: %f\n",fps); break; }}if ((f1 = open(in, O_RDONLY, 0)) == -1) { printf("%s: no se puede abrir %s\n", argv[0], in); return 1;}while ((n = read(f1, buf, 1)) > 0) { if(strcmp(buf,"\n")==0) line++;}printf("Cantidad de lineas en %s: %d\n",in,line);return 0;}char * readline() {}void sub2srt(in, out, fps){}void srt2sub(in, out, fps){}