Welcome![Sign In][Sign Up]
Location:
Search - fullpath

Search list

[OS programProcessReader

Description: 自己学习Windows进程管理时做的加强版TaskManger,可以读取进程的全路径、磁盘映像文件路径、命令行参数等,功能可继续扩充,希望对初学者有帮助-study Windows process management,list the current process information,eg. fullpath,command line...
Platform: | Size: 10240 | Author: goodone | Hits:

[AI-NN-PRfullpath

Description: 移动机器人的全路径规划算法,可以输出所有路径, vc++编写,很好,推荐-The whole mobile robot path planning algorithm, all paths can be output, vc++ to prepare, very good, recommended
Platform: | Size: 4676608 | Author: 周光有 | Hits:

[Windows DevelopGARR0

Description: 利用遗传算法解决机器人路径规划问题,较好的一个例程,在VC++平台下开发-Using the genetic algorithm to solve robot path planning problem, the better a routine in VC++ platform development
Platform: | Size: 3874816 | Author: 李志远 | Hits:

[Linux-Unixmydu.tar

Description: unix du命令的简单实现,主要可以学习glob函数的使用-static int64_t mydu_getblocks(const char*path) { int i int64_t sum=0 static struct stat stat_result glob_t glob_result static int ret static char fullpath[PATHMAX] if (lstat(path, &stat_result)<0) { perror("lstat()") return 0 } if (!S_ISDIR(stat_result.st_mode)) { return stat_result.st_blocks } /************************************************/ snprintf(fullpath, PATHMAX, " s/*", path) ret = glob(fullpath, GLOB_NOCHECK|GLOB_NOSORT, NULL, &glob_result) if (ret!=0) { perror("glob()") return 0 } snprintf(fullpath, PATHMAX, " s/.*", path) ret = glob(fullpath, GLOB_NOCHECK|GLOB_NOSORT|GLOB_APPEND, NULL, &glob_result) if (ret!=0) { perror("glob()") return 0 } sum+= stat_result.st_blocks for (i=0 i<glob_result.gl_pathc ++i) { if (isvalid(glob_result.gl_pathv[i])) { sum+= mydu_getblocks(glob_result.gl_pathv[i]) } } globfree(&glob_result) return sum }
Platform: | Size: 1024 | Author: aasdf | Hits:

CodeBus www.codebus.net