dis_sql/src/sql_iff.cxx
//
// iff_one_attribute - Output one attribute label in a comma separated list.
//
Output one attribute label in a comma separated list.
Output one attribute label in a comma separated list .
static int iff_one_attribute (int * firstp, const char * attr)
{
   if (*firstp) {
      *firstp = 0;
      if (fprintf (iff_fp, " %s", attr) < 0) {
	 return (iff_io_error ());
      }
   } else {
      if (fprintf (iff_fp, ", %s", attr) < 0) {
	 return (iff_io_error ());
      }
   }
   return (0);
}
static int iff_one_attribute ( int * firstp , const char * attr ) { if ( * firstp ) { * firstp = 0 ; if ( fprintf ( iff_fp , " " , attr ) < 0 ) { return ( iff_io_error ( ) ) ; } } else { if ( fprintf ( iff_fp , " " , attr ) < 0 ) { return ( iff_io_error ( ) ) ; } } return ( 0 ) ; }
iff_one_attribute - Output one attribute label in a comma separated list.
iff_one_attribute - Output one attribute label in a comma separated list .
// no comma before first one // Clear "first" flag so next attributes (if any) get comma.