for( i = 0; list_to_check[i] != NULL; i++ ) { if( strcmp( name, list_to_check[i] ) == 0 ) { return 1; } } f_print( stderr, "illegal nettype :\'%s\'\n", name );
for (i = 0; list_to_check[i] != NULL; i++) { if (strcmp (name, list_to_check[i]) == 0) { return 1; } } fprintf (stderr, _ ("illegal nettype :\'%s\'\n"), name);
static int check_nettype(const char *name, const char *list_to_check[]) {  int i;  for( i = 0; list_to_check[i] != NULL; i++ ) {	  if( strcmp( name, list_to_check[i] ) == 0 ) {	    return 1;	  }  }  f_print( stderr, "illegal nettype :\'%s\'\n", name );  return 0;}