[Top] [Prev] [Next] [Bottom]

HEreport

VOID HEreport(char *format, ... )
format

IN:

Output string specification

Purpose

Adds a text string to the description of the most-recently-reported error (only one text string per error).

Return value

None

Description

HEpush places on the error stack the file name, function name, line number, and a generic description of the error type. HEreport can then be used to give a more case-specific description of the error. Only one additional annotation can be attached to each error report.

The format argument must conform to the string specification requirements of printf.

Example


      char *FUNC = "Hclose";

      if (file_rec->attach > 0) {
        file_rec->refcount++;
        HERROR(DFE_OPENAID);
        HEreport("There are still %d active aids attached",
        file_rec->attach);
        return FAIL;
      }



[Top] [Prev] [Next] [Bottom]

hdfhelp@ncsa.uiuc.edu
HDF User's Reference Manual, Draft 06/09/97, NCSA HDF Development Group.