/* stringmerge.c -- Given two sorted files of strings, it creates * a sorted file consisting of all their elements. * The names of the files are passed as command * line parameters. */ #include #define MAXBUFFER 128 int getline(FILE * fd, char buff[], int nmax){ /* It reads a line from fd and stores up to nmax of * its characters to buff. */ char c; int n=0; while ((c=getc(fd))!='\n'){ if(c==EOF)return EOF; if(n