f_mkdir


Use this function to create a new directory.

Format

int f_mkdir ( const char * path)

Arguments

Argument Description Type
path The name of the directory to create. const char *

Return values

Return value Description
F_NOERR Successful execution.
Else See Error Codes.

Example

void myfunc( void )
{
        .
        .
    f_mkdir( "subfolder" );   /* Creating directories */
    f_mkdir( "subfolder/sub1" );
    f_mkdir( "subfolder/sub2" );
    f_mkdir( "/subfolder/sub3" );
        .
        .
}