From 84adefa331c4159d432d22840663c38f155cd4c1 Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Fri, 20 Nov 2009 14:54:40 +0000 Subject: The R13B03 release. --- lib/stdlib/doc/src/lib.xml | 114 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 lib/stdlib/doc/src/lib.xml (limited to 'lib/stdlib/doc/src/lib.xml') diff --git a/lib/stdlib/doc/src/lib.xml b/lib/stdlib/doc/src/lib.xml new file mode 100644 index 0000000000..046add48e8 --- /dev/null +++ b/lib/stdlib/doc/src/lib.xml @@ -0,0 +1,114 @@ + + + + +
+ + 19962009 + Ericsson AB. All Rights Reserved. + + + The contents of this file are subject to the Erlang Public License, + Version 1.1, (the "License"); you may not use this file except in + compliance with the License. You should have received a copy of the + Erlang Public License along with this software. If not, it can be + retrieved online at http://www.erlang.org/. + + Software distributed under the License is distributed on an "AS IS" + basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See + the License for the specific language governing rights and limitations + under the License. + + + + lib + + + + +
+ lib + A number of useful library functions + + +

This module is retained for compatibility. It may disappear + without warning in a future release.

+
+
+ + + flush_receive() -> void() + Flush messages + +

Flushes the message buffer of the current process.

+
+
+ + error_message(Format, Args) -> ok + Print error message + + Format = atom() | string() | binary() + Args = [term()] + + +

Prints error message Args in accordance with + Format. Similar to io:format/2, see + io(3).

+
+
+ + progname() -> atom() + Return name of Erlang start script + +

Returns the name of the script that started the current + Erlang session.

+
+
+ + nonl(String1) -> String2 + Remove last newline + + String1 = String2 = string() + + +

Removes the last newline character, if any, in + String1.

+
+
+ + send(To, Msg) + Send a message + + To = pid() | Name | {Name,Node} +  Name = Node = atom() + Msg = term() + + +

This function to makes it possible to send a message using + the apply/3 BIF.

+
+
+ + sendw(To, Msg) + Send a message and wait for an answer + + To = pid() | Name | {Name,Node} +  Name = Node = atom() + Msg = term() + + +

As send/2, but waits for an answer. It is implemented + as follows:

+ +sendw(To, Msg) -> + To ! {self(),Msg}, + receive + Reply -> Reply + end. +

The message returned is not necessarily a reply to the + message sent.

+
+
+
+
+ -- cgit v1.2.3