730e30d353962933ce8286de4fb9f46f58a7440e
kent
  Wed Sep 4 13:02:37 2019 -0700
Added a new small function aking to fieldedTableMustFindFieldIx, but without the must.  Just returns a -1 on problem rather than errAborting.

diff --git src/inc/fieldedTable.h src/inc/fieldedTable.h
index ac1d9e5..afab298 100644
--- src/inc/fieldedTable.h
+++ src/inc/fieldedTable.h
@@ -53,23 +53,26 @@
 /* Write out a fielded table back to file.  If idField is non-NULL it will be added
  * to the start of each output line as a steadily incrementing integer starting with startId. */
 
 boolean fieldedTableColumnIsNumeric(struct fieldedTable *table, int fieldIx);
 /* Return TRUE if field has numeric values wherever non-null */
 
 int fieldedTableMaxColChars(struct fieldedTable *table, int colIx);
 /* Calculate the maximum number of characters in a cell for a column */
 
 void fieldedTableSortOnField(struct fieldedTable *table, char *field, boolean doReverse);
 /* Sort on field.  Distinguishes between numerical and text fields appropriately.  */
 
 int fieldedTableMustFindFieldIx(struct fieldedTable *table, char *field);
 /* Find index of field in table's row.  Abort if field not found. */
 
+int fieldedTableFindFieldIx(struct fieldedTable *table, char *field);
+/* Return index of field in a table's row or -1 if not found */
+
 struct hash *fieldedTableIndex(struct fieldedTable *table, char *field);
 /* Return hash of fieldedRows keyed by values of given field */
 
 struct hash *fieldedTableUniqueIndex(struct fieldedTable *table, char *field);
 /* Return hash of fieldedRows keyed by values of given field, which must be unique. */
 
 #endif /* FIELDEDTABLE_H */