Convenience function for finding a quantity

saf_find_one_quantity is a function defined in quant.c.

Synopsis:

SAF_Quantity * saf_find_one_quantity(SAF_Db *database, const char *desc, SAF_Quantity *buf)

Formal Arguments:

  • database: The database in which to find the specified quantity.
  • desc: Quantity description to find.
  • buf: [OUT] Optional quantity handle to initialize and return.

Description: This is a simple version of saf_find_quantity that takes fewer arguments.

Return Value: On success, a handle for the first quantity found which has description desc in database database is returned. Otherwise a SAF__ERROR_HANDLE is returned.

Parallel Notes: This function must be called collectively in the database communicator.

See Also: