本文来自草根编程网:http://www.caogenbiancheng.com/?action-viewnews-itemid-109
函数名: abort
功能: 异常终止一个进程
用法: void abort(void);
程序例:
#include
#include
int main(void)
{
printf("Calling abort()\n");
abort();
return 0; /* This is never reached */
}
函数名: abs
功能: 求整数的绝对值
用法: int abs(int i);
程序例:
#include
#include
int main(void)
{
int number = -1234;
printf("number: %d absolute value: %d\n", number, abs(number));
return 0;
}
函数名: absread, abswirte
功能: 绝对磁盘扇区读、写数据
用法: int absread(int drive, int nsects, int sectno, void *buffer);
int abswrite(int drive, int nsects, in tsectno, void *buffer);
程序例:
/* absread example */
#include
#include
#include
#include
int main(void)
{
int i, strt, ch_out, sector;
char buf[512];
printf("Insert a diskette into drive A and press any key\n");
getch();
sector = 0;
if (absread(0, 1, sector, &buf) != 0)
{
perror("Disk problem");
exit(1);
}
printf("Read OK\n");
strt = 3;
for (i=0; i<80; i++)
{
ch_out = buf[strt+i];
putchar(ch_out);
}
printf("\n");
return(0);
}

转载于:https://blog.51cto.com/1881149/370079

C语言函数大全(a开头)相关推荐

  1. c语言s开头的函数以及作用,C语言函数大全-s开头-完整版.doc

    C语言函数大全-s开头-完整版 C语言函数大全(s开头) 函数名: sbrk 功能: 改变数据段空间位置 用法: char *sbrk(int incr); 程序例: #include#include ...

  2. c语言函数 t啥意思,C语言函数大全(t开头)

    函数名: tell 功 能: 取文件指针的当前位置 用 法: long tell(int handle); 程序例: #include #include #include #include int m ...

  3. g开头的C语言编程软件,C语言函数大全(g开头)

    函数名: gcvt 功 能: 把浮点数转换成字符串 用 法: char *gcvt(double value, int ndigit, char *buf); 程序例: #include #inclu ...

  4. C语言函数大全-- m 开头的函数(1)

    C语言函数大全 本篇介绍C语言函数大全-- m 开头的函数 1. malloc 1.1 函数说明 函数声明 函数功能 void *malloc(size_t size); 用于动态分配内存 参数: s ...

  5. C语言函数大全-- q 开头的函数

    C语言函数大全 本篇介绍C语言函数大全-- q 开头的函数 1. qsort 1.1 函数说明 函数声明 函数功能 void qsort(void *base, size_t nmemb, size_ ...

  6. C语言函数大全-- s 开头的函数(1)

    C语言函数大全 本篇介绍C语言函数大全-- s 开头的函数(1) 1. sbrk 1.1 函数说明 函数声明 函数功能 void *sbrk(intptr_t increment); 它是一个 Uni ...

  7. C语言函数大全-- i 开头的函数

    C语言函数大全 本篇介绍C语言函数大全– i 开头的函数 1. imagesize 1.1 函数说明 函数声明 函数功能 unsigned imagesize(int left, int top, i ...

  8. C语言函数大全--d开头的函数

    C语言函数大全 本篇介绍C语言函数大全–d开头的函数 1. detectgraph 1.1 函数说明 函数声明 函数功能 void detectgraph(int *graphdriver, int ...

  9. C语言函数大全-- n 开头的函数

    C语言函数大全 本篇介绍C语言函数大全-- n 开头的函数 1. nan 1.1 函数说明 函数声明 函数功能 double nan(const char *tagp); 用于返回一个表示 NaN(非 ...

  10. C语言函数大全-- s 开头的函数(3)

    C语言函数大全 本篇介绍C语言函数大全-- s 开头的函数(3) 1. sleep 1.1 函数说明 函数声明 函数功能 unsigned int sleep(unsigned int seconds ...

最新文章

  1. 西湖大学能招本科生了!首次确定 5 大本科专业
  2. 三周第五次课(4月10日)
  3. 【电子信息复试】考研复试常考问题——数据结构
  4. MySQL调用mongodb事务回滚_SpringBoot整合MongoDB,在多数据源下实现事务回滚。
  5. 初识Activiti
  6. python数据分析基础教程 numpy_Python数据分析基础教程:NumPy学习指南(第2版)
  7. AIX上增加逻辑卷时报错误0516-787 extendlv: Maximum allocation for logical volume
  8. 特斯拉标准续航版Model Y为什么下架?马斯克这么回答
  9. linux大页内存 grub,Centos7.2使用1G大页面内存
  10. Ubuntu上: insufficient permissions for device解决
  11. 整天说Code Review重要,你知道应该关注哪些关键点吗?
  12. JAVA程序性能优化研究 - 循环内对象性能优化内容
  13. PS文字的投影怎么打?
  14. 【华人学者风采】周明 微软亚洲研究院
  15. 2020仙气十足的女生个性网名
  16. Win11终端管理员打不开解决方法
  17. 一个 SAP 开发工程师的 2022 年终总结:四十不惑
  18. ubuntu16.04 护眼神器Redshift
  19. 关于JavaScript中typeof的用法
  20. AD域详细介绍和部署

热门文章

  1. hive中时间操作(一)
  2. jquery腾讯微博
  3. jsp:include page= /路径
  4. 建房子之前先挖地基 - Java BlockingQueue理解
  5. python __file__ 与相对路径
  6. QuickPager asp.net 分页控件 转
  7. Msxml2.XMLHTTP Microsoft.XMLHTTP new XMLHttpRequest
  8. Apache POI和EasyExcel 第五集:Apache POI的Excel读取不同类型的数据
  9. body click js 委托_自动化测试之selenium调用JS语句
  10. 字典推导式_聊一聊:python的各种推导式(列表推导式、字典推导式、集合推导式)...