The "a" Package

These routines are meant to provide an easy way of printing error messages prior to function and process termination.

Library: karma
Link With: -lkarma

Functions

a_print_abortPrint an abort message.
a_prog_bugPrint a bug message.
a_func_abortPrint a warning message.


Functions


void a_print_abort ()

This routine will print the message "Aborting.\n" to the standard error and will then abort the process.

Parameters:

Returns: The routine does not return. The process is aborted.
Multithreading Level: Unsafe


void a_prog_bug (char *function_name)

This routine will print an error message to the standard error indicating that a bug occurred.

Parameters:

Returns: The routine does not return. The process is aborted.
Multithreading Level: Unsafe


void a_func_abort (char *function_name, char *reason)

This routine will print an error message to the standard error indicating that a function is terminating abnormally.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


Contact: Richard Gooch
Web Development: Ariel Internet Services