summaryrefslogtreecommitdiff
path: root/Ganlib/src/xabort_c.c
diff options
context:
space:
mode:
authorstainer_t <thomas.stainer@oecd-nea.org>2025-09-08 13:48:49 +0200
committerstainer_t <thomas.stainer@oecd-nea.org>2025-09-08 13:48:49 +0200
commit7dfcc480ba1e19bd3232349fc733caef94034292 (patch)
tree03ee104eb8846d5cc1a981d267687a729185d3f3 /Ganlib/src/xabort_c.c
Initial commit from Polytechnique Montreal
Diffstat (limited to 'Ganlib/src/xabort_c.c')
-rw-r--r--Ganlib/src/xabort_c.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/Ganlib/src/xabort_c.c b/Ganlib/src/xabort_c.c
new file mode 100644
index 0000000..5fa4b1b
--- /dev/null
+++ b/Ganlib/src/xabort_c.c
@@ -0,0 +1,23 @@
+
+/*****************************************/
+/* GANLIB API */
+/* AUTHOR: A. Hebert ; 06/05/09 */
+/*****************************************/
+
+/*
+Copyright (C) 2009 Ecole Polytechnique de Montreal
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+*/
+
+#include <stdlib.h>
+#include <stdio.h>
+
+void xabort_c(char *msg){
+ printf(" %s\n",msg);
+ fflush(stdout);
+ exit(1);
+}