Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
lib(3)			   Erlang Module Definition			lib(3)

NAME
       lib - A number of useful	library	functions

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

EXPORTS
       flush_receive() -> ok

	      Flushes the message buffer of the	current	process.

       error_message(Format, Args) -> ok

	      Types:

		 Format	= io:format()
		 Args =	[term()]

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

       progname() -> atom()

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

       nonl(String1) ->	String2

	      Types:

		 String1 = String2 = string()

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

       send(To,	Msg) ->	Msg

	      Types:

		 To = pid() | atom() | {atom(),	node()}
		 Msg = term()

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

       sendw(To, Msg) -> Msg

	      Types:

		 To = pid() | atom() | {atom(),	node()}
		 Msg = term()

	      As  send/2,  but	waits for an answer. It	is implemented as fol-
	      lows:

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

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

Ericsson AB			  stdlib 2.4				lib(3)

NAME | DESCRIPTION | EXPORTS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=lib&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help