English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
プロセス ID をリストに変換します。
Pid_to_list(processid)
processid −リストに変換する必要があるプロセス ID。
プロセス ID からリストを返す。
-module(helloworld). -export([start/0, call/2]). call(Arg1, Arg2) -> io:format("~p ~p~n", [Arg1, Arg2]). start() -> Pid = spawn(?MODULE, call, ["hello", "process"]), io:fwrite("~p~n",[pid_to_list(Pid)]).
上記のプログラムを実行すると、以下の結果が得られます。
"<0.55.0>" "hello" "process"