usermem.c
Go to the documentation of this file.
00001 /*<html><pre>  -<a                             href="qh-user.htm"
00002   >-------------------------------</a><a name="TOP">-</a>
00003 
00004    usermem.c
00005    qh_exit(), qh_free(), and qh_malloc()
00006 
00007    see README.txt  see COPYING.txt for copyright information.
00008 
00009    If you redefine one of these functions you must redefine all of them.
00010    If you recompile and load this file, then usermem.o will not be loaded
00011    from qhull.a or qhull.lib
00012 
00013    See libqhull.h for data structures, macros, and user-callable functions.
00014    See user.c for qhull-related, redefinable functions
00015    see user.h for user-definable constants
00016    See userprintf.c for qh_fprintf and userprintf_rbox,c for qh_fprintf_rbox
00017 
00018    Please report any errors that you fix to qhull@qhull.org
00019 */
00020 
00021 #include "libqhull.h"
00022 
00023 #include <stdlib.h>
00024 
00025 /*-<a                             href="qh-user.htm#TOC"
00026   >-------------------------------</a><a name="qh_exit">-</a>
00027 
00028   qh_exit( exitcode )
00029     exit program
00030 
00031   notes:
00032     same as exit()
00033 */
00034 void qh_exit(int exitcode) {
00035     exit(exitcode);
00036 } /* exit */
00037 
00038 /*-<a                             href="qh-user.htm#TOC"
00039 >-------------------------------</a><a name="qh_free">-</a>
00040 
00041 qh_free( mem )
00042 free memory
00043 
00044 notes:
00045 same as free()
00046 */
00047 void qh_free(void *mem) {
00048     free(mem);
00049 } /* free */
00050 
00051 /*-<a                             href="qh-user.htm#TOC"
00052     >-------------------------------</a><a name="qh_malloc">-</a>
00053 
00054     qh_malloc( mem )
00055       allocate memory
00056 
00057     notes:
00058       same as malloc()
00059 */
00060 void *qh_malloc(size_t size) {
00061     return malloc(size);
00062 } /* malloc */
00063 
00064 


libqhull-ours
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:32:11