mkdir() mode_t arguments

I'm dealing with directories, so far I've read the contents and I wanted to move on to creating directories.

When I use mkdir() with just a pathname I get a 'too few arguments error' saying I need something for the mode_t but I don't know what to put into it, I can't find anywhere that explains it properly.

Can anyone explain mode_t permissions and give a few examples?
Much appreciated, I thank you for your assistance.
It is the same parameter as the mode parameter to open() and to the chmod utility.
Much appreciated. I'll look that up and use it.
Topic archived. No new replies allowed.