Skip to main content

svn_cmdline_init

Function svn_cmdline_init 

Source
pub unsafe extern "C" fn svn_cmdline_init(
    progname: *const c_char,
    error_stream: *mut FILE,
) -> c_int
Expand description

Set up the locale for character conversion, and initialize APR. If @a error_stream is non-NULL, print error messages to the stream, using @a progname as the program name. Attempt to set @c stdout to line-buffered mode, and @a error_stream to unbuffered mode. Return @c EXIT_SUCCESS if successful, otherwise @c EXIT_FAILURE.

@note This function should be called exactly once at program startup, before calling any other APR or Subversion functions.