C library function manual --- directory function, the function library is dir.h, dos.h

xiaoxiao2021-03-06  65

The directory function, the function library is dir.h, dos.hint chdir (char * path) makes the specified directory PATH (eg "C: // WPS") into the current working directory, back 0int Findfirst (char * Pathname, Struct Ffblk * ffblk, int attrib) Find the specified file, successfully returns 0 Pathname as the specified directory name and file name, such as "C: // WPS // TXT" ffblk as a structure specified saved file information, The definition is as follows: ┏┏━━━━━━━━━━━━━━━━┓┓┓┓━━━━━┓┓┓ ┓Struct Ffblk ┓ cer ff_reserved [21]; / * DOS reserved word * / char ff_attrib; / * Document attribute * / INT ff_ftime; / * file time * / int FF_FDATE; / * File date * / l ff_fsize; / * file length * / cer ff_name [13]; / * file name * /} ┗━━━━━┛┛┛━━━━━━━━┛┛┛━━ 为 为 为 为 为 为 文件 为 属, 代 以下 代┏ 代 代━━━━━━━━━━━━━━ ━━━ ┓ ┓ __rdonly read-only file a l __hidden hidden file Fa_direc directory __system system file f___━ ┗━━━━━━━━━━━┻━┻ ┛┛: struct ffblk ff; Findfirst ("*. WPS", & ff, fa_rdonly);

转载请注明原文地址:https://www.9cbs.com/read-85396.html

New Post(0)