NT_ExplainError

Reference Documentation

product_line_custom
Napatech SmartNIC
category
Reference Information
char* NT_ExplainError ( int error,
    char * buf,
    uint32_t buflen
  )    

Explains an error code returned by NTAPI functions.

This function will convert the error code to text

Parameters

[in] error

The error code to explain

  buf

Location of the explanation

[in] buflen

The buffer length to prevent buffer overrun. The define NT_ERRBUF_SIZE should be used as buflen.

Return values

A

pointer to buf

Definition at line 51 of file ntapi.h.

Referenced by ForceAnEvent(), GetAdapterTimestamp(), GetSensorData(), GetTimeStamp(), if(), Is4GATxSupported(), main(), printError(), SetGlobalSync(), and while().