libmp3splt
src/input_output.c File Reference
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
#include "splt.h"
Include dependency graph for input_output.c:

Go to the source code of this file.

Functions

int splt_io_check_if_directory (const char *fname)
int splt_io_check_if_file (splt_state *state, const char *fname)
int splt_io_create_directories (splt_state *state, const char *dir)
void splt_io_create_output_dirs_if_necessary (splt_state *state, const char *output_filename, int *error)
void splt_io_find_filenames (splt_state *state, const char *directory, char ***found_files, int *number_of_found_files, int *error)
FILE * splt_io_fopen (const char *filename, const char *mode)
unsigned char * splt_io_fread (FILE *file, int start, size_t size)
size_t splt_io_fwrite (splt_state *state, const void *ptr, size_t size, size_t nmemb, FILE *stream)
off_t splt_io_get_file_length (splt_state *state, FILE *in, const char *filename, int *error)
char * splt_io_get_linked_fname (const char *fname, int *number_of_symlinks)
int splt_io_get_word (FILE *in, off_t offset, int mode, unsigned long *headw)
int splt_io_input_is_stdin (splt_state *state)
int splt_io_input_is_stdout (splt_state *state)
int splt_io_mkdir (splt_state *state, const char *path)
char * splt_io_readline (FILE *stream, int *error)
int splt_io_stat (const char *path, mode_t *st_mode, off_t *st_size)

Detailed Description

This file contains all I/O functions this library uses.

Definition in file input_output.c.