ChinaUnix.net
相关文章推荐:

FUNCTION TIME

#include <time.h> int main(int argc, char *argv[]) { time_t tp; char *str; time(&tp); ////////////appear error str=ctime(&tp); } ERROR: main.c:37: called object is not a function ,why ? 如果调用gettimeofday函数的话,得到的时间为struct timeval 形式的,不知道该怎么转换成一般的字符串形式?

by lrh_0_2000 - C/C++ - 2006-06-02 05:04:40 阅读(7061) 回复(9)

相关讨论

[color="#000000"]自定义的函数: [color="#990000"]函数执行: 实例: 取得IP所对应的DNS名称 (IP -> FQDN) [color="#000000"]$host= gethost($ip); echo "hostname: $host"; ?> 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28922/showart_345382.html

by atyu30 - BSD文档中心 - 2007-07-23 23:11:59 阅读(1130) 回复(0)

一个自定义脚本运行时需要调用另外一个自定义脚本?可以把被调用的脚本写成一个function放到要调用它的脚本中吗?

by ha_ - Shell - 2006-02-14 11:17:48 阅读(1137) 回复(5)

计时器 睡眠函数 unsigned int sleep(unsigned int seconds); 例: #include XXXX int main() { time_t dt; time(&dt); printf("%s begin at:%s\n",__FILE__,ctime(&dt)); puts("sleep for 5 seconds...."); sleep(5); time(&dt); printf("%s end at:%s\n",__FILE__,ctime(&dt)); return 0; } 管道 创建管道 int pipe(int fd[2]); fd[0]用于读 fd[1]用于写 例: int z; int fd[2]; if((z==pipe(&fd[0])))==-1) { perror("pipe"); exi...

by creatory - AIX文档中心 - 2008-03-31 20:28:06 阅读(1129) 回复(0)

请问各位老大: # define _SIGXCPU 33 /* CPU time limit exceeded (setrlimit) */ 是什么意思?起什么作用?

by studio99 - HP-UX - 2003-12-23 13:28:55 阅读(1089) 回复(0)

I want to find /home/user/test/temp.txt . use find as followed: find -name temp.txt -print //error why?

by hr_it - C/C++ - 2008-09-10 17:11:10 阅读(1313) 回复(3)

String reverse(String arg) { if(arg.length == 0) { return arg; } else { return reverse(arg.substring(1, arg.length)) + arg.substring(0,1); }} 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/29993/showart_384406.html

by dealover - Java文档中心 - 2007-09-18 13:57:23 阅读(744) 回复(0)

mmap() function和malloc() function有什么区别 呢?什么时候我们可以用mmap() function呢?它有什么好处呢?

by zhn636 - C/C++ - 2007-08-29 09:12:49 阅读(2847) 回复(8)

刚开始学习驱动编写。 在insmod 模块的时候,报出 QM_MODULES:function NOT IMPLEMENTED 同时在自己建的2.4.18内核的LFS系统下报出 couldn't find the kernel version the module was compiled for. 希望高手帮我解释一下,报错的原因。

by leonashirley - 内核/嵌入技术 - 2005-11-09 21:22:23 阅读(783) 回复(0)

请问如何在ksh里把export一个function,使之让subshell可以用到它

by jeff800614 - Shell - 2004-04-29 08:27:33 阅读(860) 回复(1)