| C语言库函数(C类字母) |
|
| 作者:未知 文章来源:网络收集 点击数: 更新时间:2006-3-29 15:22:24
|
时间转换为字符串 用 法: char *ctime(const time_t *time); 程序例:
#include #include
int main(void) { time_t t;
time(&t); printf("Today's date and time: %s\n", ctime(&t)); return 0; }
函数名: ctrlbrk 功 能: 设置Ctrl-Break处理程序 用 法: void ctrlbrk(*fptr)(void); 程序例:
#include #include
#define ABORT 0
int c_break(void) { printf("Control-Break pressed. Program aborting ...\n"); return (ABORT); }
int main(void) { ctrlbrk(c_break); for(;;) { printf("Looping... Press to quit:\n"); } return 0; } 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9]
|
|
[ 收藏此页到: 天天|和讯|博采|ViVi|狐摘|我摘|天极 ] 文章录入:kinda 责任编辑:kinda |
|
上一篇文章: C语言库函数(B类字母) 下一篇文章: C语言库函数(D类字母) |
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |