想到一个小问题!关于c库函数的!!小弟谢谢各位的回复!!

xfr_1982 2003-08-19 10:49:23
c库函数中的
“stdio.h"和”stdlib.h"有什么区别啊!!
...全文
109 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
cdxiaogan 2003-08-20
  • 打赏
  • 举报
回复
不懂的问题先自己看看能否解决
打开vs中的头文件一看就明白了
有些什么功能
在文件前面的解释里都写清楚了
看msdn也行啊
实在找不到来这里问也不晚
Wolf0403 2003-08-20
  • 打赏
  • 举报
回复
比较著名的 malloc, free 都是 stdlib.h 中的。
printf 这些有关输入输出的,都是 stdio.h 中的。
sevencat 2003-08-20
  • 打赏
  • 举报
回复
open(,,)
fopen(,,)
晨星 2003-08-19
  • 打赏
  • 举报
回复
把VS6中这两个文件的前面几行拷贝出来给你看看吧:

1。stdio.h
/***
*stdio.h - definitions/declarations for standard I/O routines
*
* Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
*
*Purpose:
* This file defines the structures, values, macros, and functions
* used by the level 2 I/O ("standard I/O") routines.
* [ANSI/System V]
*
* [Public]
*
****/

2.stdlib.h
/***
*stdlib.h - declarations/definitions for commonly used library functions
*
* Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
*
*Purpose:
* This include file contains the function declarations for commonly
* used library functions which either don't fit somewhere else, or,
* cannot be declared in the normal place for other reasons.
* [ANSI]
*
* [Public]
*
****/

通常那些不适合放到任何一个有着更具体的分工的头文件(如stdio.h、stdargs.h、string.h、conio.h等等)中的杂函数都被放尽了stdlib.h中。
xfr_1982 2003-08-19
  • 打赏
  • 举报
回复
stdio.h 是标准输入输出库
stdlib.h 是标准库
有什么区别呢?????谢谢!!
panshanjun 2003-08-19
  • 打赏
  • 举报
回复
stdio.h 是标准输入输出库
stdlib.h 是标准库
ianzy 2003-08-19
  • 打赏
  • 举报
回复
定义了不同的库函数和结构。比如:FILE 结构在 stdio 中定义。从字面上讲,stdio 是标准 I/O, stdlib 是标准库。内容不同。
晨星 2003-08-19
  • 打赏
  • 举报
回复
内容不一样啊。你到编译器的相关目录中把这两个头文件打开看看就知道了。

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧