词条 | _wmkdi |
释义 | C语言函数函数简介? 函数名称:_wmkdi 函数功能及返回值:创建一个目录,若成功则返回0,否则返回-1 所属库:direct.h或wchar.h 函数原型: int _wmkdir( const wchar_t *dirname ); 相关函数:_mkdir,_wrmdir 程序示例? // crt_makedir.c #include <direct.h> #include <stdlib.h> #include <stdio.h> int main( void ) { if( _mkdir( "\\\\testtmp" ) == 0 ) { printf( "Directory '\\\\testtmp' was successfully created\" ); system( "dir \\\\testtmp" ); if( _rmdir( "\\\\testtmp" ) == 0 ) printf( "Directory '\\\\testtmp' was successfully removed\" ); else printf( "Problem removing directory '\\\\testtmp'\" ); } else printf( "Problem creating directory '\\\\testtmp'\" ); } |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。