Here, you have several useful functions and examples (for the C language)
[It's just examples to help, after you can adapt / optimize in your code]
(Almost everything is compatible with Linux and Windows)
To port on Windows, you can install and use MSYS2 Or Cygwin (MinGW / MinGW-w64)
[ MSYS2: https://www.msys2.org/ ]
[ Cygwin: https://www.cygwin.com/ ]