cell[sizeof(cell)-1] = '\0';
readthiscell (const char *filename){     FILE *f;     char cell[256];     f = fopen (filename, "r");     if (f == NULL) {	 fprintf(stderr, "Can't open file %s.\n", filename);	 return 1;     }     if (fgets (cell, sizeof cell, f) == NULL) {	  fprintf(stderr, "Cannot read cellname from %s\n",		  filename);	  return 1;     }     if (cell[strlen(cell) - 1] == '\n')	 cell[strlen(cell) - 1] = '\0';     thiscell = strdup (cell);     if (thiscell == NULL)	 err (1, "strdup");     fclose (f);     return 0;}