1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
<HTML>
<HEAD>
<!-- refpage -->
<TITLE>lib</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<CENTER>
<A HREF="http://www.erlang.se"><IMG BORDER=0 ALT="[Erlang Systems]" SRC="min_head.gif"></A>
<H1>lib</H1>
</CENTER>
<H3>MODULE</H3>
<UL>
lib</UL>
<H3>MODULE SUMMARY</H3>
<UL>
Interface Module</UL>
<H3>DESCRIPTION</H3>
<UL>
<P>The module <CODE>lib</CODE> provides the following useful library functions.
</UL>
<H3>EXPORTS</H3>
<P><A NAME="flush_receive%0"><STRONG><CODE>flush_receive() -> void()</CODE></STRONG></A><BR>
<UL>
<P>Flushes the message buffer of the current process.
</UL>
<P><A NAME="error_message%2"><STRONG><CODE>error_message(Format, Args)</CODE></STRONG></A><BR>
<UL>
<P>Prints error message <CODE>Args</CODE> in accordance with
<CODE>Format</CODE> in the normal way.
</UL>
<P><A NAME="progname%0"><STRONG><CODE>progname() -> atom()</CODE></STRONG></A><BR>
<UL>
<P>Returns the name of the script that starts the current Erlang session.
</UL>
<P><A NAME="nonl%1"><STRONG><CODE>nonl(List1)</CODE></STRONG></A><BR>
<UL>
<P>Removes the last newline character, if any, in <CODE>List</CODE>.
</UL>
<P><A NAME="send%2"><STRONG><CODE>send(To, Msg)</CODE></STRONG></A><BR>
<UL>
<P>This function to makes it possible to send a message through
<CODE>apply</CODE>.
</UL>
<P><A NAME="sendw%2"><STRONG><CODE>sendw(To, Msg)</CODE></STRONG></A><BR>
<UL>
<P>As <CODE>send/2</CODE>, but waits for an answer. It is implemented
as follows:<PRE> sendw(To, Msg) ->
To ! {self(),Msg},
receive
Reply -> Reply
end.</PRE><P>The message returned is not necessarily a reply to the
message sent.
</UL>
<H3>Warning</H3>
<UL>
<P>This module is retained for compatibility. It may disappear
without warning in a future release.
</UL>
<H3>AUTHORS</H3>
<UL>
Robert Virding - support@erlang.ericsson.se<BR>
</UL>
<CENTER>
<HR>
<FONT SIZE=-1>stdlib 1.10<BR>
Copyright © 1991-2001
<A HREF="http://www.erlang.se">Ericsson Utvecklings AB</A><BR>
<!--#include virtual="/ssi/otp_footer.html"-->
</FONT>
</CENTER>
</BODY>
</HTML>
|