f_print (fout, "main(argc, argv)\nint argc;\nchar *argv[];\n{\n");
f_print (fout, "int\nmain (argc, argv)\nint argc;\nchar *argv[];\n{\n");
write_sample_clnt_main (void){  list *l;  definition *def;  version_list *vp;  f_print (fout, "\n\n");  if (Cflag)    f_print (fout, "main( int argc, char* argv[] )\n{\n");  else    f_print (fout, "main(argc, argv)\nint argc;\nchar *argv[];\n{\n");  f_print (fout, "\tchar *host;");  f_print (fout, "\n\n\tif(argc < 2) {");  f_print (fout, "\n\t\tprintf(\"usage: %%s server_host\\n\", argv[0]);\n");  f_print (fout, "\t\texit(1);\n\t}");  f_print (fout, "\n\thost = argv[1];\n");  for (l = defined; l != NULL; l = l->next)    {      def = l->val;      if (def->def_kind != DEF_PROGRAM)	{	  continue;	}      for (vp = def->def.pr.versions; vp != NULL; vp = vp->next)	{	  f_print (fout, "\t");	  pvname (def->def_name, vp->vers_num);	  f_print (fout, "( host );\n");	}    }  f_print (fout, "}\n");}