I was trying to use fopen with wb to create a file and also create the path to that file if the path doesn't exist. It didn't work (under windows) so I made a function that calls CreateDirectory to create the path first, and then fopen the file.
What is the Linux equivalent to CreateDirectory?