RETURN VALUE Upon successful completion, opendir() shall return a pointer to an object of type DIR. Otherwise, a null pointer shall be returned and errno set to indicate the error.返回值:成功完成后,opendir() 返回一个DIR类型指针,否则 返回一个NULL 并且errno 被赋值以指出错误原因。
RETURN VALUE opendir函数,打开成功,返回指向⽬录流的指针;打开失败,则返回NULL,并设置相应的错误代码errno。⼆、readdir - read a directory SYNOPSIS #include <sys/types.h> #include <dirent.h> struct dirent *readdir(DIR *dir);DESCRIPTION readdir函数返回⼀个指向dirent结构体的指针,该结构体代表...
CALL BPX1OPD,(Directory_name_length, Directory_name, Return_value, Return_code, Reason_code) AMODE 64 callers use BPX4OPD with the same parameters.Parameters Directory_name_length Supplied parameter Type: Integer Length: Fullword The name of a fullword that contains the length of the name...
Return Value:Returns the directory handle resource on success. FALSE on failure. Throws an error of level E_WARNING if path is not a valid directory, or if the directory cannot be opened due to permission restrictions or filesysytem errors. You can hide the error output of opendir() by ad...
RETURN VALUE opendir函数,打开成功,返回指向目录流的指针;打开失败,则返回NULL,并设置相应的错误代码errno。 二、readdir - read a directory SYNOPSIS #include <sys/types.h> #include <dirent.h> struct dirent *readdir(DIR *dir); DESCRIPTION readdir函数返回一个指向dirent结构体的指针,该结构体代表了由dir...
*/while(NULL!= (psDirInfo =readdir(pFile))) { iRetValue =strlen(psDirInfo -> d_name);printf("file length = %d,file name is %s\n\r",iRetValue,psDirInfo -> d_name); } }closedir(pFile);return0; }intmain(){FileNameScan("./");return0; }...
door_return(3C) door_revoke(3C) door_server_create(3C) door_setparam(3C) door_ucred(3C) door_unbind(3C) door_xcreate(3C) double_to_decimal(3C) drand48(3C) dup2(3C) econvert(3C) ecvt(3C) edata(3C) enable_extended_FILE_stdio(3C) encrypt(3C) end(3C) endauthattr(3C) endexecatt...
Return Valuevalue opendir() was successful. The value returned is a pointer to a DIR, representing an open directory stream. This DIR describes the directory and is used in subsequent operations on the directory using the readdir(), rewinddir(), and closedir() functions. NULL pointer opendir...
1714 + return NULL; 1715 + } 1716 + fh = open_dir_handle(wpath, &fd); 1701 1717 if (fh == INVALID_HANDLE_VALUE) { 1702 1718 return NULL; 1703 1719 } @@ -1718,7 +1734,7 @@ opendir_internal(HANDLE fh, WIN32_FIND_DATAW *fd) 1718 1734 // of the previous string ...
libssh2_sftp_opendir(LIBSSH2_SFTP *sftp, const char *path); .SHDESCRIPTION This is a macro defined in a public libssh2 header file that is using the underlying function\fIlibssh2_sftp_open_ex(3)\fP. .SHRETURN VALUE See\fIlibssh2_sftp_open_ex(3)\fP ...