[erlang-questions] Wrong doc for erl_encode

Kenneth Lundin kenneth.lundin@REDACTED
Mon Mar 3 16:18:39 CET 2008


Thanks for reporting this documentation bug. Will be corrected in R12B-2

The functions erl_encode and erl_encode_buf
returns the number of bytes written (on success) and 0 otherwise.

/Regards Kenneth Erlang/OTP team Ericsson

On 3/3/08, Alex Vazquez <alexvazquezfente@REDACTED> wrote:
> Please, someone could clarify what erl_encode(ETERM *term, uint8_t *buffer)
> returns?
> Documentation(erl_interface.pdf and man pages) says it returns 0 if succeed
> or 1 in case of error, but my tests seem to say that it returns the number
> of bytes written on the buffer. Is this correct? In that case, could someone
> correct the docs?
> Regards,
> --
> Alejandro Vazquez Fente
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list