File: wrap_str.c

package info (click to toggle)
bglibs 2.04%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,468 kB
  • sloc: ansic: 15,821; perl: 674; sh: 63; makefile: 29
file content (22 lines) | stat: -rw-r--r-- 294 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "msg.h"
#include "wrap.h"

void wrap_str(int result)
{
  if (!result)
    die_oom(wrap_exit);
}

#ifdef SELFTEST_MAIN
MAIN
{
  wrap_exit = 0;
  wrap_str(1);
  obuf_putsflush(&outbuf, "worked\n");
  wrap_str(0);
}
#endif
#ifdef SELFTEST_EXP
worked
selftest: Fatal: Out of memory
#endif