abort.c

来自「德州仪器(TI) 的超低功耗16 位RISC 混合信号处理器的MSP430 平台」· C语言 代码 · 共 29 行

C
29
字号
/*******************
 *
 * Copyright 1998-2003 IAR Systems. All rights reserved.
 *
 * $Revision: 1.7 $
 *
 * This is the default implementation of the "abort" function of the
 * standard library.  It can be replaced with a system-specific
 * implementation.
 *
 * The abort function is called when an abnormal program termination
 * should occur.
 *
 ********************/

#include <stdlib.h>
#include <yfuns.h>

_STD_BEGIN

#pragma module_name = "?abort"

void abort(void)
{
  __exit(EXIT_FAILURE);
}

_STD_END

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?