/* %Z%%M% %I% %E% */

/*
 * Copyright (c) 1994-2009 by Wayne C. Gramlich.
 * All rights reserved.
 */

/*
 * This file provide a additional routines for addint errors
 * to an {xlib_errors} object from C code.
 */

#ifndef XLIB_H
#include "xlib.h"
#endif

/*
 * xlib_errors___add(errors, text)
 *	This routine will append {text} to {errors}.
 */
void
xlib_errors___add(
    Xlib_errors errors,
    Str text)
{
    char buffer[128];
    String message;
    extern xlib_errors__append(Xlib_errors, String);

    message = (String)strdup((char *)string__unix_str(text, buffer));
    xlib_errors__append(errors, message);
}

