1ABORT(3am) GNU Awk Extension Modules ABORT(3am)
2
3
4
6 abort - exit without running END rules
7
9 @load "abort"
10
11 abort(11)
12
14 The abort extension adds a function named abort(), as follows:
15
16 abort([exit-val])
17 This function takes an integer argument and passes that value to
18 the exit(3) C library function. If the argument is not numeric,
19 it passes zero to exit(3). No matter what, gawk exits.
20
22 @load "abort"
23 ...
24 printf "Goodbye, cruel world!\n"
25 abort(11)
26
28 exit(3)
29
31 Arnold D. Robbins
32
34 Copyright © 2018, Free Software Foundation, Inc.
35
36 Permission is granted to make and distribute verbatim copies of this
37 manual page provided the copyright notice and this permission notice
38 are preserved on all copies.
39
40 Permission is granted to copy and distribute modified versions of this
41 manual page under the conditions for verbatim copying, provided that
42 the entire resulting derived work is distributed under the terms of a
43 permission notice identical to this one.
44
45 Permission is granted to copy and distribute translations of this man‐
46 ual page into another language, under the above conditions for modified
47 versions, except that this permission notice may be stated in a trans‐
48 lation approved by the Foundation.
49
50
51
52Free Software Foundation Jan 08 2018 ABORT(3am)