3 * File name: ir/common/xoprintf.c
4 * Purpose: Xoprintf --- extended formatted output to obstacks.
5 * Author: Christian von Roques
7 * Created: 1999 by getting from fiasco
9 * Copyright: (c) 1995, 1996 Christian von Roques
10 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
24 /* bcopy is not ISO C */
25 #define bcopy(X, Y, Z) memcpy((Y), (X), (Z))
28 xoprinter (void *obst, const char *data, size_t len)
30 obstack_grow ((struct obstack *)obst, data, len);
36 xoprintf (struct obstack *obst, const char *fmt, ...)
42 res = xvgprintf (xoprinter, obst, fmt, args);
48 xvoprintf (struct obstack *obst, const char *fmt, va_list args)
50 return xvgprintf (xoprinter, obst, fmt, args);
53 #endif /* USE_PRINTF */