1lib(3)                     Erlang Module Definition                     lib(3)
2
3
4

NAME

6       lib - Useful library functions.
7

DESCRIPTION

9   Warning:
10       This  module  is  retained for backward compatibility. It can disappear
11       without warning in a future Erlang/OTP release.
12
13

EXPORTS

15       error_message(Format, Args) -> ok
16
17              Types:
18
19                 Format = io:format()
20                 Args = [term()]
21
22              Prints error message Args in accordance with Format. Similar  to
23              io:format/2.
24
25       flush_receive() -> ok
26
27              Flushes the message buffer of the current process.
28
29       nonl(String1) -> String2
30
31              Types:
32
33                 String1 = String2 = string()
34
35              Removes the last newline character, if any, in String1.
36
37       progname() -> atom()
38
39              Returns  the  name of the script that started the current Erlang
40              session.
41
42       send(To, Msg) -> Msg
43
44              Types:
45
46                 To = pid() | atom() | {atom(), node()}
47                 Msg = term()
48
49              Makes it possible to send a message using the apply/3 BIF.
50
51       sendw(To, Msg) -> term()
52
53              Types:
54
55                 To = pid() | atom() | {atom(), node()}
56                 Msg = term()
57
58              As send/2, but waits for an answer. It is  implemented  as  fol‐
59              lows:
60
61              sendw(To, Msg) ->
62                  To ! {self(),Msg},
63                  receive
64                      Reply -> Reply
65                  end.
66
67              The returned message is not necessarily a reply to the sent mes‐
68              sage.
69
70
71
72Ericsson AB                     stdlib 3.4.5.1                          lib(3)
Impressum