pub unsafe fn mailimf_body_parse(
    mut message: *const libc::c_char,
    mut length: size_t,
    mut indx: *mut size_t,
    mut result: *mut *mut mailimf_body,
) -> libc::c_int {
    let mut cur_token: size_t = 0;
    let mut body: *mut mailimf_body = 0 as *mut mailimf_body;
    cur_token = *indx;
    body = mailimf_body_new(
        message.offset(cur_token as isize),
        length.wrapping_sub(cur_token),
    );
    if body.is_null() {
        return MAILIMF_ERROR_MEMORY as libc::c_int;
    }
    cur_token = length;
    *result = body;
    *indx = cur_token;
    return MAILIMF_NO_ERROR as libc::c_int;
}
/*
  mailimf_body_parse will parse the given text part of a message

  @param message this is a string containing the message text part
  @param length this is the size of the given string
  @param indx this is a pointer to the start of the message text part in
    the given string, (* indx) is modified to point at the end
    of the parsed data
  @param result the result of the parse operation is stored in
    (* result)

  @return MAILIMF_NO_ERROR on success, MAILIMF_ERROR_XXX on error
*/
mailimf_body_parse will parse the given text part of a message
mailimf_body_parse will parse the given text part of a message
pub unsafe fn mailimf_body_parse(
    mut message: *const libc::c_char,
    mut length: size_t,
    mut indx: *mut size_t,
    mut result: *mut *mut mailimf_body,
) -> libc::c_int {
    let mut cur_token: size_t = 0;
    let mut body: *mut mailimf_body = 0 as *mut mailimf_body;
    cur_token = *indx;
    body = mailimf_body_new(
        message.offset(cur_token as isize),
        length.wrapping_sub(cur_token),
    );
    if body.is_null() {
        return MAILIMF_ERROR_MEMORY as libc::c_int;
    }
    cur_token = length;
    *result = body;
    *indx = cur_token;
    return MAILIMF_NO_ERROR as libc::c_int;
}
pub unsafe fn mailimf_body_parse ( mut message : * const libc :: c_char , mut length : size_t , mut indx : * mut size_t , mut result : * mut * mut mailimf_body , ) -> libc :: c_int { let mut cur_token : size_t = 0 ; let mut body : * mut mailimf_body = 0 as * mut mailimf_body ; cur_token = * indx ; body = mailimf_body_new ( message . offset ( cur_token as isize ) , length . wrapping_sub ( cur_token ) , ) ; if body . is_null ( ) { return MAILIMF_ERROR_MEMORY as libc :: c_int ; } cur_token = length ; * result = body ; * indx = cur_token ; return MAILIMF_NO_ERROR as libc :: c_int ; }
mailimf_body_parse will parse the given text part of a message
mailimf_body_parse will parse the given text part of a message
message
*const libc::c_char
length
size_t
indx
*mut size_t
result
*mut *mut mailimf_body
MAILIMF_NO_ERROR on success, MAILIMF_ERROR_XXX on error
MAILIMF_NO_ERROR on success MAILIMF_ERROR_XXX on error
message
*const libc::c_char
this is a string containing the message text part
this is a string containing the message text part
length
size_t
this is the size of the given string
this is the size of the given string
indx
*mut size_t
this is a pointer to the start of the message text part in
the given string, (* indx) is modified to point at the end
of the parsed data
this is a pointer to the start of the message text part in the given string ( * indx ) is modified to point at the end of the parsed data
result
*mut *mut mailimf_body
the result of the parse operation is stored in
(* result)
the result of the parse operation is stored in ( * result )