Main Page   Compound List   File List   Compound Members   File Members  

HC_Log.c File Reference

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "checkpoint.h"

Functions

void HC_Panic (HC_Sequence_t *sequence, const char *format,...)
int HC_Log (HC_Sequence_t *sequence, const char *format,...)
const char * HC_Strerror (int error)

Detailed Description

Collection of functions relating to logging.


Function Documentation

int HC_Log HC_Sequence_t   sequence,
const char *    format,
...   
 

Prints an error to stderr.

Parameters:
sequence  Sequence object.
format  Printf()-style format string.

void HC_Panic HC_Sequence_t   sequence,
const char *    format,
...   
 

Called to halt program execution because of a fatal error.

Parameters:
sequence  Sequence object.
format  Printf()-style format string.

const char* HC_Strerror int    error
 

Convert from an error code to a string describing the error.

Parameters:
error  The error code
Returns:
A contant string describing the error.


Copyright ©2003. Astra Network Inc. All Rights Reserved.