Builder/Builder/Common/plyfile.c
/******************************************************************************
Write to a file the word that represents a PLY data type.

Entry:
  fp   - file pointer
  code - code for type
******************************************************************************/
Write to a file the word that represents a PLY data type.
Entry:
fp   - file pointer
code - code for type
Write to a file the word that represents a PLY data type . Entry : fp - file pointer code - code for type
void write_scalar_type (FILE *fp, int code)
{
  if (code <= PLY_START_TYPE || code >= PLY_END_TYPE) {
    fprintf (stderr, "write_scalar_type: bad data code = %d\n", code);
    exit (-1);
  }
  fprintf (fp, "%s", type_names[code]);
}
void write_scalar_type ( FILE * fp , int code ) { if ( code <= PLY_START_TYPE || code >= PLY_END_TYPE ) { fprintf ( stderr , " \n " , code ) ; exit ( -1 ) ; } fprintf ( fp , " " , type_names [ code ] ) ; }
Write to a file the word that represents a PLY data type.
Write to a file the word that represents a PLY data type .
/* make sure this is a valid code */ /* write the code to a file */