[][src]Function ejdb_sys::bson_append_code

pub unsafe extern "C" fn bson_append_code(
    b: *mut bson,
    name: *const c_char,
    str: *const c_char
) -> c_int

Append code to a bson.

@param b the bson to append to. @param name the key for the code. @param str the code to append. @param len the number of bytes from str to append.

@return BSON_OK or BSON_ERROR.