source: EcnlProtoTool/trunk/prototool/src/libbb/xfunc_die.c@ 321

Last change on this file since 321 was 321, checked in by coas-nagasima, 7 years ago

文字コードを設定

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 457 bytes
Line 
1/* vi: set sw=4 ts=4: */
2/*
3 * Utility routines.
4 *
5 * Copyright (C) 2008 by Denys Vlasenko <vda.linux@googlemail.com>
6 *
7 * Licensed under GPLv2, see file LICENSE in this source tree.
8 */
9
10/* Keeping it separate allows to NOT pull in stdio for VERY small applets.
11 * Try building busybox with only "true" enabled... */
12
13#include "libbb.h"
14
15void (*die_func)(void);
16
17void FAST_FUNC xfunc_die(void)
18{
19 if (die_func)
20 die_func();
21 exit(xfunc_error_retval);
22}
Note: See TracBrowser for help on using the repository browser.