hi,<div><div>I using nif mehod to Invoke C funtion in Erlang.<br>come code£º<br>1,</div><div>char *y;<br>if (!enif_get_string(env, argv[0], y, <b>sizeof(y)</b>, ERL_NIF_LATIN1)) </div><div> <br>I input "123456" args, but only return "123".</div>
<div><br></div><div>2,char *y;</div>if (!enif_get_string(env, argv[0], y, <b>10</b>, ERL_NIF_LATIN1)) <div><br></div><div>this only appear Segmentation fault</div></div><div><br></div><div>I have no idea.</div><div>Please help me. </div>
<div><br></div><div>Thanks.</div><div>From jason.</div>