common_kerl.cpp File Reference

Common definitions. More...

#include "common_kerl.h"

Include dependency graph for common_kerl.cpp:


Functions

char * errorToString (int errorno)

Detailed Description

Common definitions.

Author:
Thomas Lorentsen, Sten Gruener
Provides some common functions we will want to call to do useful things. Provides error handling.

Function Documentation

char* errorToString ( int  errorno  ) 

Parameters:
errorno the error value passed
Returns:
the string representation of the error Converts a error defined in common_kerl.h into a human readable form All spaces must be replaced with underscores to be passed as erlang atoms If the error is not found it should return the number as a string. You can also pass SUCCESS to get a string representation that will work in Erlang, just dont pass it back as an error {error, ok} otherwise it will seem rather silly
Parameters:
errorno the error value passed
Returns:
the string representation of the error Converts a error defined in common_kerl.h into a human readable form. All spaces must be replaced with underscores to be passed as erlang atoms. If the error is not found it will return undefined_error. This shouldn't happen though. You can also pass SUCCESS to get a string representation that will work in Erlang, just dont pass it back as an error {error, ok} otherwise it will seem rather silly


Generated on Thu Aug 13 23:20:22 2009 for KERL by  doxygen 1.5.8