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

Oyjl core functions. More...

#include <ctype.h>
#include <math.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <errno.h>
#include <wchar.h>
#include "oyjl.h"
#include "oyjl_macros.h"
#include "oyjl_i18n_internal.h"
#include "oyjl_tree_internal.h"
#include "oyjl_version.h"
#include <sys/stat.h>

Functions

char * oyjlReadFileStreamToMem (FILE *fp, int *size)
 read FILE into memory More...
 
char * oyjlReadFileP (FILE *fp, int *size_ptr, void *(*alloc)(size_t), const char *file_name)
 Read a local FILE pointer to memory. More...
 
FILE * oyjlFopen (const char *file_name, const char *mode)
 wrapper for fopen() More...
 
char * oyjlReadFile (const char *file_name, int flags, int *size_ptr)
 read local file into memory More...
 
int oyjlHasApplication (const char *app_name)
 detect program More...
 
char * oyjlReadCommandF (int *size, const char *mode, void *(*alloc)(size_t), const char *format,...)
 Read a stream from shell command. 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...
 

Detailed Description

Oyjl core functions.

oyjl - file i/o and other basic helpers

Copyright:
2016-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

Copyright (c) 2004-2022 Kai-Uwe Behrmann ku.b@.nosp@m.gmx..nosp@m.de

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.