Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 878613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:47:50+00:00 2026-05-15T11:47:50+00:00

Are there any widely used I/O stream abstraction layers for plain C? By an

  • 0

Are there any widely used I/O stream abstraction layers for plain C?

By an I/O stream abstraction layer I mean any layer that at least allows the creation of custom read/write functions. For C++, there’s the standard iostream and boost::iostreams. For glibc users, there’s a possibility to use custom streams. These won’t do any good if the requirement is to write portable C code.

It is better to use a library that is either widely used or easy to embed to the source code, or both.

SDL_RWops is an undocumented but widely used feature of SDL, and zziplib can use it. However, it does not make much sense to add a dependency to SDL just to get this feature.

GLib contains a GIOChannel abstraction, but the library is again quite large and they say that “support for Windows is only partially complete”.

However, the above are not quite satisfactory for small libraries, such as decoders, file format readers and signal processors: they contain lots of unnecessary stuff and the LGPL licensing prevents embedding the relevant parts to non-GPL code.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T11:47:51+00:00Added an answer on May 15, 2026 at 11:47 am

    I think you answered your own question.

    No, there are no widely used steam abstraction libraries. Those that exist are usually a small part of libraries that most people don’t want to depend on, or are very specialized.

    What are your requirements? What is it you are looking for out of an abstraction library? I have to admit that every time I’ve looked at one, or started writing one, I usually end up back at the standard POSIX interfaces… what more abstraction could one want?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any standard (or widely used) simple POSIX path manipulation library for C
Is there any free open source library (in C/C++) for sockets that is widely
Is there any widely used SQL coding standard out there? SQL is little bit
Is there any way I can set a formatter on models that will convert
I've written a custom widget for a control that we use widely throughout our
Is REST even designed to be used by a SaaS? Are there any examples
Is there any free library out there that can provide editing capabilites for resources
Is there any functional difference in Python between a try statement and an if
Is there any way in Notepad++ (or even with another tool) to change the
Are there any recommended libraries, patterns or examples on how to implement Prefetching and/or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.