Victor Bazarov said:
Really? I don't know such function in the Standard library.
--------------------
In VC++, the following piece of code generates "temp" file
#include <io.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
void main( void )
{
int fh = _creat( "temp", _S_IREAD | _S_IWRITE );
if( fh == -1 )
perror( "Couldn't create data file" );
else
{
printf( "Created data file.\n" );
_close( fh );
}
}
Output
Created data file.
--------------------
Similarly, no. Check the programming manual for your OS.
--------------------
However, whether one uses _creat for creating a file or some other
function to do so is immaterial. The real question of creating a
directory remains unanswered.
I've checked programming manual, but didn't get much of help. Also
if I go for a OS specific function there can be an issue of
portability later.
--------------------
[A-Za-z ]+