samples/load_model.c
void WriteOutput(const char* output_file, const void* output, const size_t count)
{
    FILE* file = fopen(output_file, "wb");
    CHECK(file != NULL);
    printf("Writing result to file: %s\n", output_file);

    size_t count_written = fwrite(output, sizeof(char), count, file);
    CHECK(count_written == count);
    printf("Output data size: %zu\n", count_written);

    fclose(file);
}
/*
 * Write output to file
 *
 * @param output_file - name of the output file
 * @param output - output data
 * @param count - number of element in output
 */
Write output to file

@param output_file - name of the output file
@param output - output data
@param count - number of element in output
Write output to file @param output_file - name of the output file @param output - output data @param count - number of element in output
void WriteOutput(const char* output_file, const void* output, const size_t count)
{
    FILE* file = fopen(output_file, "wb");
    CHECK(file != NULL);
    printf("Writing result to file: %s\n", output_file);
    size_t count_written = fwrite(output, sizeof(char), count, file);
    CHECK(count_written == count);
    printf("Output data size: %zu\n", count_written);
    fclose(file);
}
void WriteOutput ( const char * output_file , const void * output , const size_t count ) { FILE * file = fopen ( output_file , " " ) ; CHECK ( file != NULL ) ; printf ( " \n " , output_file ) ; size_t count_written = fwrite ( output , sizeof ( char ) , count , file ) ; CHECK ( count_written == count ) ; printf ( " \n " , count_written ) ; fclose ( file ) ; }
Write output to file
Write output to file