Difference between revisions of "OpenDBX/C API/odbx error"

From Linuxnetworks
< OpenDBX‎ | C API
Jump to: navigation, search
(See also:)
(header)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
  
  const char* odbx_error(
+
'''#include <odbx.h>'''
     odbx_t* handle,
+
     int errno )  
+
  const char* '''odbx_error'''(
 +
     odbx_t* '''handle''',
 +
     int '''error''' )  
  
 
= Description: =
 
= Description: =

Revision as of 00:05, 15 February 2007


#include <odbx.h>

const char* odbx_error(
    odbx_t* handle,
    int error ) 

Description:

Returns the error string represented by the error number or the error string generated by the backend. Error strings returned by the backends are overwritten when the next odbx_*() function is called. All error strings are static and must not be changed or freed.

Parameters:

  • handle: Connection object created by odbx_init()
  • errno: Error number returned by odbx_*() functions

Return values:

  • A localized error string

Errors:

  • An invalid parameter error is also returned as localized string

See also:



Back to Overview