Oyranos  git-devel
Oyranos is a full featured Color Management System
Typedefs | Functions
oyjl_io.h File Reference

Oyjl API provides a platformindependent C interface for file reading and i/o. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

Typedefs

typedef int(* oyjlFileNameCheck_f) (const char **full_filename, int write_size)
 custom file name checker function type More...
 

Functions

FILE * oyjlFopen (const char *file_name, const char *mode)
 wrapper for fopen() More...
 
char * oyjlReadFileStreamToMem (FILE *fp, int *size)
 read FILE into memory More...
 
char * oyjlReadFile (const char *file_name, int flags, int *size_ptr)
 read local file into memory More...
 
char * oyjlReadCommandF (int *size, const char *mode, void *(*alloc)(size_t), const char *format,...)
 Read a stream from shell command. More...
 
char * oyjlReadFileP (FILE *fp, int *size_ptr, void *(*alloc)(size_t), const char *file_name)
 Read a local FILE pointer to memory. More...
 
int oyjlReadFunction (int argc, const char **argv, int(*callback)(int argc, const char **argv), void *(*alloc)(size_t), int *size_stdout, char **data_stdout, int *size_stderr, char **data_stderr)
 Read a stream from a function. More...
 
int oyjlWriteFile (const char *filename, const void *mem, int size)
 write memory to FILE More...
 
int oyjlHasApplication (const char *app_name)
 detect program More...
 

Detailed Description

Oyjl API provides a platformindependent C interface for file reading and i/o.

oyjl - Basic i/o helper C API's

Copyright:
2010-2022 (C) Kai-Uwe Behrmann
Author
Kai-Uwe Behrmann ku.b@.nosp@m.gmx..nosp@m.de
License:
MIT http://www.opensource.org/licenses/mit-license.php
Since
2010/09/15