/* stringarray.c -- Implementation of stringarray functions. */ #include "stringarray.h" 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