third-parties
qhull
src
libqhull
userprintf_rbox.c
Go to the documentation of this file.
1
/*<html><pre> -<a href="qh-user.htm"
2
>-------------------------------</a><a name="TOP">-</a>
3
4
userprintf_rbox.c
5
qh_fprintf_rbox()
6
7
see README.txt see COPYING.txt for copyright information.
8
9
If you recompile and load this file, then userprintf_rbox.o will not be loaded
10
from qhull.a or qhull.lib
11
12
See libqhull.h for data structures, macros, and user-callable functions.
13
See user.c for qhull-related, redefinable functions
14
see user.h for user-definable constants
15
See usermem.c for qh_exit(), qh_free(), and qh_malloc()
16
see Qhull.cpp and RboxPoints.cpp for examples.
17
18
Please report any errors that you fix to qhull@qhull.org
19
*/
20
21
#include "
libqhull.h
"
22
23
#include <stdarg.h>
24
#include <stdio.h>
25
#include <stdlib.h>
26
27
/*-<a href="qh-user.htm#TOC"
28
>-------------------------------</a><a name="qh_fprintf_rbox">-</a>
29
30
qh_fprintf_rbox(fp, msgcode, format, list of args )
31
print arguments to *fp according to format
32
Use qh_fprintf_rbox() for rboxlib.c
33
34
notes:
35
same as fprintf()
36
fgets() is not trapped like fprintf()
37
exit qh_fprintf_rbox via qh_errexit_rbox()
38
*/
39
40
void
qh_fprintf_rbox
(FILE *fp,
int
msgcode,
const
char
*
fmt
, ... ) {
41
va_list
args
;
42
43
if
(!fp) {
44
qh_fprintf_stderr
(6231,
"Qhull internal error (userprintf_rbox.c): fp is 0. Wrong qh_fprintf_rbox called.\n"
);
45
qh_errexit_rbox
(6231);
46
}
47
if
(msgcode >=
MSG_ERROR
&& msgcode <
MSG_STDERR
)
48
fprintf(fp,
"QH%.4d "
, msgcode);
49
va_start(
args
,
fmt
);
50
vfprintf(fp,
fmt
,
args
);
51
va_end(
args
);
52
}
/* qh_fprintf_rbox */
53
obb.fmt
fmt
Definition:
obb.py:145
qh_fprintf_stderr
void qh_fprintf_stderr(int msgcode, const char *fmt,...)
Definition:
usermem.c:57
qh_errexit_rbox
void qh_errexit_rbox(int exitcode)
Definition:
rboxlib.c:866
libqhull.h
doxygen_xml_parser.args
args
Definition:
doxygen_xml_parser.py:887
qh_fprintf_rbox
void qh_fprintf_rbox(FILE *fp, int msgcode, const char *fmt,...)
Definition:
userprintf_rbox.c:40
MSG_ERROR
#define MSG_ERROR
Definition:
user.h:74
MSG_STDERR
#define MSG_STDERR
Definition:
user.h:76
hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:59