Making a directory in C.

I'm working on an archiving program to challenge myself. I'm still fairly early in its development, but I'd like to know how to make a new directory in C in advance so I can prepare myself for when I actually have to implement that code. I've searched for a method on Google and found mention of the mkdir() function in many Linux forums, but couldn't find it in the man 3 pages. Is it available on FreeBSD and other platforms?

Thanks in advance.
 
The whatis(1) command can show available man pages in more than one section:
Code:
% whatis mkdir
mkdir(1)                 - make directories
mkdir(2), mkdirat(2)     - make a directory file
 
Back
Top