/home/mandrake/rpm/BUILD/sc68-2.2.1/file68/error68.h File Reference


Detailed Description

Author:
benjamin gerard error message stack.

Date:
2003/08/08
Id
error68.h,v 2.1 2003/08/30 01:27:08 benjihan Exp

SC68 error module consists on a fixed size stack of fixed length strings. It provides functions for both error pushing and poping.

Go to the source code of this file.

Functions

int SC68error_add (const char *format,...)
 Push a formatted error message.
const char * SC68error_get (void)
 Get last error message.


Function Documentation

int SC68error_add ( const char *  format,
  ... 
)

Push a formatted error message.

The SC68error_add() function format error string into stack buffer. If stack is full, the oldest error message is removed.

Parameters:
format printf() like format string
Returns:
error-code
Return values:
-1 

const char* SC68error_get ( void   ) 

Get last error message.

The SC68error_get() function retrieves last error message and removes it from error message stack.

Returns:
Static string to last error message
Return values:
0 No stacked error message


Generated on Wed Jul 25 10:05:08 2007 for sc68fordevelopers by  doxygen 1.5.2