blob: 385941c6e93be81fd421253870bb1db2c6497ded (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* Copyright (C) 2000, Imperial College
*
* This file is part of the Imperial College Exact Real Arithmetic Library.
* See the copyright notice included in the distribution for conditions
* of use.
*/
#include <stdarg.h>
#include <stdio.h>
/*
* A small utility for procedures to write debug information.
*/
void
debugp(char *proc, char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
fprintf(stderr, "%-35s", proc);
vfprintf(stderr, fmt, ap);
va_end(ap);
}
|