Main Page   Compound List   File List   Compound Members   File Members  

usererr.c File Reference

#include <errno.h>
#include <execinfo.h>
#include <libintl.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "../include/libuser/user.h"

Defines

#define _(String)   gettext(String)

Functions

void lu_error_new (struct lu_error **error, enum lu_error_code code, const char *desc,...)
void lu_error_free (struct lu_error **error)

Detailed Description


Function Documentation

void lu_error_free ( struct lu_error ** error )
 

lu_error_free:

Parameters:
error   A pointer to a pointer to a lu_error_t which must be cleared.

This function clears an lu_error_t pointer.

Returns:
nothing.

void lu_error_new ( struct lu_error ** error,
enum lu_error_code code,
const char * desc,
... )
 

lu_error_new:

Parameters:
error   A pointer to a pointer to a lu_error_t which will be used to hold information about this error.
code   An lu_error_code describing the error.
desc   A format string (followed by arguments) giving a more detailed description of the error. May be NULL.

This function sets an lu_error_t pointer to a value which can be passed up to a calling function.

Returns:
nothing.


Generated at Tue Dec 23 01:33:06 2003 for libuser by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001