Menu

#1289 Confusing INPUT/OUTPUT example

None
closed-fixed
5
2022-03-09
2012-12-14
George Paci
No

In section 34.7.1 of the 2.0 (and 1.3) documentation:

A C function signature is given:

/* send message, return number of bytes sent, along with success code */
int send_message(char *text, int len, int *success);

and wrapped as follows:

%apply int *OUTPUT { int *success };
...
int send_message(char *text, int *success);

The len parameter is never explained, and apparently not wrapped.

Is it just extraneous? Does it specify the length of the input message? Should it be added to the wrapper? Should it be removed from the example?

Discussion

  • Olly Betts

    Olly Betts - 2022-03-09
    • status: open --> closed-fixed
    • Group: -->
     
  • Olly Betts

    Olly Betts - 2022-03-09

    It's extraneous - presumably left over from an ancient version of the example. I've removed it in 2a9431ebfb81d2ebcb1ce489fdf43d0f751df72a. Thanks for reporting, and sorry for the slow action.

     

    Last edit: Olly Betts 2022-03-09

Log in to post a comment.

MongoDB Logo MongoDB