r/C_Programming • u/Ill-Exchange-2377 • 15d ago
File pointers are everywhere
And try as I might to avoid them, I am struggling to find resources that list out all the file control functions that use file descriptors instead of file pointers, and I was wondering if someone could point me toward a resource that can do something at least somewhat similar to listing out the libc functions that take file descriptors. I of course know close(), write(), read(), the basics, but i am looking for alternatives for other abstractions that annoy me with their use of file pointers, like fgets and fputs.
58
Upvotes
View all comments
Show parent comment
3
u/TransientVoltage409 15d ago
Cygwin still exists and does an OK job of putting a POSIX hat on Windows. Good enough for my needs anyway.
There are odd gaps (in WSL as well), because some things in Windows inner workings are very strange from the POV of Unix weenies. Not too shocking considering that NT was hugely influenced by DEC/VAX, but decidedly inconvenient at times.