I don\'t have much experience and I\'m on a C project where I need to create & delete folders and the program must run on both Linux and Windows.
I saw few solut
It is not what you should do in production code, but I had to mention that one liner solution no #ifdef etc. I am Assuming you run it from the same path you want to create the directory in:
#ifdef
system("mkdir my_dir");