Debian Codegraph @

util.c

raw symbols SCIP
1 /* See LICENSE file for copyright and license details. */cxx . . $ `<file>/util.c`/
2 #include <stdarg.h>
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <string.h>
6
7 #include "util.h"cxx . . $ `<file>/util.h`/
8
9 void *
10 ecalloccxx . . $ ecalloc(63a7bf2941bfcd7a).(size_t nmemb, size_t size)
11 {
12 void *p;
13
14 if (!(p = calloccxx . . $ calloc(63a7bf2941bfcd7a).(nmemb, size)))
15 diecxx . . $ die(326aeb464d16410c).("calloc:");
16 return p;
17 }
18
19 void
20 diecxx . . $ die(326aeb464d16410c).(const char *fmt, ...) {
21 va_listcxx . . $ va_list# ap;
22
23 va_startcxx . . $ `<external>/8105065126723003039/stdarg.h:50:9`!(ap, fmt);
24 vfprintfcxx . . $ vfprintf(bded311e54d67f9c).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, fmt, ap);
25 va_endcxx . . $ `<external>/8105065126723003039/stdarg.h:52:9`!(ap);
26
27 if (fmt[0] && fmt[strlencxx . . $ strlen(751346f8406fd082).(fmt)-1] == ':') {
28 fputccxx . . $ fputc(b1cd03d6c470d1bd).(' ', stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!);
29 perrorcxx . . $ perror(85c52e162fed56f9).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
30 } else {
31 fputccxx . . $ fputc(b1cd03d6c470d1bd).('\n', stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!);
32 }
33
34 exitcxx . . $ exit(3ca292c338df9bb3).(1);
35 }