Lines Matching refs:ptr
40 struct dirent *ptr;
46 while ((ptr = readdir(dir)) != NULL) {
47 if (strcmp(ptr->d_name, ".") == 0 || strcmp(ptr->d_name, "..") == 0) {
60 ret = strcat_s(curPath, DEFAULT_PATH_LEN, ptr->d_name);
69 if ((ptr->d_type != DIR_TYPE)) {
115 static int ConstructSrcAndTargetPath(char *curPath, char *desPath, struct dirent *ptr,
127 ret = strcat_s(curPath, DEFAULT_PATH_LEN, ptr->d_name);
141 ret = strcat_s(desPath, DEFAULT_PATH_LEN, ptr->d_name);
156 struct dirent *ptr;
159 while ((ptr = readdir(dir)) != NULL) {
160 if (strcmp(ptr->d_name, ".") == 0 || strcmp(ptr->d_name, "..") == 0) {
166 ret = ConstructSrcAndTargetPath(curPath, desPath, ptr, srcPath, tarPath);
171 if (ptr->d_type == DIR_TYPE) {