ab

来自「Algorithms for Image Processing and Comp」· 代码 · 共 50 行

TXT
50
字号
@c ----------------------------------------------------------------------
@node abort, process
@heading @code{abort}
@subheading Syntax

@example
#include <stdlib.h>

void volatile abort(void);
@end example

@subheading Description

When you call @code{abort}, the message "Abort!" is printed on stdout
and the program exits with an exit code of one. 

@subheading Return Value

This function does not return.

@subheading Example

@example
if ((q = malloc(100)) == NULL)
  abort();
@end example

@c ----------------------------------------------------------------------
@node abs, math
@heading @code{abs}
@subheading Syntax

@example
#include <stdlib.h>

int abs(int value);
@end example

@subheading Return Value

The absolute value of @code{value} is returned.

@subheading Example

@example
int sq = 7;
sq = sq * abs(sq) + 1;
@end example

⌨️ 快捷键说明

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