c语言之库函数f开头.docVIP

  • 17
  • 0
  • 约29.99万字
  • 约 56页
  • 2016-09-13 发布于河南
  • 举报
c语言之库函数f开头

c语言之库函数f开头 函数名: fabs 功 能: 返回浮点数的绝对值 用 法: double fabs(double x); 程序例: #include stdio.h #include math.h int main(void) { float number = -1234.0; printf(number: %f absolute value: %f\n, number, fabs(number)); return 0; } 函数名: farcalloc 功 能: 从远堆栈中申请空间 用 法: void far *farcalloc(unsigned long units, unsigned ling unitsz); 程序例: #include stdio.h #include alloc.h #include string.h #include dos.h int main(void) { char far *fptr; char *str = Hello; /* allocate memory for the far pointer */ fptr = farcalloc(10, sizeof(char)); /* copy Hello into allocated memory */

文档评论(0)

1亿VIP精品文档

相关文档