<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I do not think there is a way to extract that number (except for a small hack, of course)<div><div><br></div><div>Care to tell the reason behind why you need it ?</div><div><br></div><div>/Tony</div><div><br></div><div><br></div><div><br><div><div>On 28 sep 2011, at 09:53, Jovi Zhang wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Wed, Sep 28, 2011 at 3:31 PM, Anthony Ramine <<a href="mailto:nox@dev-extend.eu">nox@dev-extend.eu</a>> wrote:<br><blockquote type="cite">Are you looking for enif_self() [1]?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Regards,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">[1] <a href="http://www.erlang.org/doc/man/erl_nif.html#enif_self">http://www.erlang.org/doc/man/erl_nif.html#enif_self</a><br></blockquote><br>enif_self only return ErlNifPid, but I want to get pid number.<br>like pid is <0.32.0>, what I want to get is 32, is there any way to<br>get number? Thanks!<br><br>ErlNifPid* enif_self(ErlNifEnv* caller_env, ErlNifPid* pid)<br>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>http://erlang.org/mailman/listinfo/erlang-questions<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">"Installing applications can lead to corruption over time. </span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">Applications gradually write over each other's libraries, partial upgrades occur, user and system errors happen, and minute changes may be unnoticeable and difficult to fix"</span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; "><br></span></div></span><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>