[erlang-questions] heart:get_cmd/0

Anders Nygren anders.nygren@REDACTED
Thu Apr 12 18:25:26 CEST 2007


The documentation says that heart:get_cmd/0 -> {ok,Cmd}

And that, "If the command is cleared, the empty string will be returned."

In R11B-4, I found that

When the command is not set, I get

1> heart:get_cmd().
{ok,[0,0]}

And whe it is set I get

1> heart:get_cmd().
{ok,[47,111,112,116,47,99,99,101,47,98,105,110,47,115,116,97,114,116,0,0]}

Note the two 0's at the end.

Is it really supposed to be like that?

/Anders



More information about the erlang-questions mailing list