if (infile && (include = extendfile(infile, ".h"))) { f_print(fout, "#include \"%s\"\n", include); free(include); } else f_print(fout, "#include <rpc/rpc.h>\n");
if (infile && (include = extendfile (infile, ".h"))) { fprintf (fout, "#include \"%s\"\n", include); free (include); } else fprintf (fout, "#include <rpc/rpc.h>\n");
svc_output(const char *infile, const char *define, int extend,	   const char *outfile){  definition *def;  char *include;  const char *outfilename;  long tell;  open_input(infile, define);  outfilename = extend ? extendfile(infile, outfile) : outfile;  checkfiles(infile,outfilename); /*check if outfile already exists.				  if so, print an error message and exit*/  open_output(infile, outfilename);  add_sample_msg();  if (infile && (include = extendfile(infile, ".h"))) {    f_print(fout, "#include \"%s\"\n", include);    free(include);  } else    f_print(fout, "#include <rpc/rpc.h>\n");  tell = ftell(fout);  while ((def = get_definition())!=NULL) {	  write_sample_svc(def);  }  if (extend && tell == ftell(fout)) {	  (void) unlink(outfilename);  }}