Skip to the content.

Project logo

Operating System Input Output Library

The os_io.h header defines three variable types, several macros, and various functions for performing buffered input and output operations with files.

📝 Table of Contents

🧐 About

The following function signatures are exported by the os_io.h library:

SO_FILE *so_fopen(const char *pathname, const char *mode);
int so_fclose(SO_FILE *stream);
int so_fileno(SO_FILE *stream);
int so_fflush(SO_FILE *stream);
int so_fputc(int c, SO_FILE *stream);
size_t so_fread(void *ptr, size_t size, size_t nmemb, SO_FILE *stream);
size_t so_fwrite(const void *ptr, size_t size, size_t nmemb, SO_FILE *stream);
int so_fseek(SO_FILE *stream, long offset, int whence);
long so_ftell(SO_FILE *stream);

To use this functions you must add the os_io.h header in your source and specify at compile time where the library can be found

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

To use the os_io.h library on your projects you must have:

Installing

This is a step by step series of examples that tell you how to get a development env running.

🎈 Usage

If you want to use the os_io.so library in your projects then you must add the os_io.h header in the desired source file and specify at the compile time the path to the os_io.so library.

⛏️ Built Using

✍️ Authors