"Fossies" - the Fresh Open Source Software Archive

Member "rufus-3.13/src/bled/init_handle.c" (20 Nov 2020, 624 Bytes) of package /linux/misc/rufus-3.13.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "init_handle.c" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 3.12_vs_3.13.

    1 /* vi: set sw=4 ts=4: */
    2 /*
    3  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    4  */
    5 
    6 #include "libbb.h"
    7 #include "bb_archive.h"
    8 
    9 archive_handle_t* FAST_FUNC init_handle(void)
   10 {
   11     archive_handle_t *archive_handle;
   12 
   13     /* Initialize default values */
   14     archive_handle = xzalloc(sizeof(archive_handle_t));
   15     if (archive_handle == NULL)
   16         return NULL;
   17     archive_handle->file_header = xzalloc(sizeof(file_header_t));
   18     archive_handle->action_header = header_skip;
   19     archive_handle->action_data = data_skip;
   20     archive_handle->filter = filter_accept_all;
   21     archive_handle->seek = seek_by_jump;
   22 
   23     return archive_handle;
   24 }