c语言库函数放在哪儿的,或者更哪个文件相关联的?

c4185 2010-08-19 04:00:38
比如turboc2吧,它就两个目录,100多个文件,而库函数通常就有70多个,就是找不到,我想看以下有的函数是怎样定义的
...全文
534 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
ls251544415 2011-01-12
  • 打赏
  • 举报
回复
库函数的详细内容是写在*.lib文件里面的(库函数的详细内容是看不到的)
在*.h文件里面约定好库函数的调用方式(只能在这个文件里面看到有哪些库函数)
luowei3yy 2011-01-12
  • 打赏
  • 举报
回复
这个 新手不晓得
赵4老师 2010-08-19
  • 打赏
  • 举报
回复
TC2不知道有没有,反正BC++3.1是在
BC\CRTL\CLIB目录下
比如
BC\CRTL\CLIB\PRINTF.C
/*-----------------------------------------------------------------------*
* filename - printf.c
*
* function(s)
* printf - send formatted output to stdout
*-----------------------------------------------------------------------*/

/*
* C/C++ Run Time Library - Version 5.0
*
* Copyright (c) 1987, 1992 by Borland International
* All Rights Reserved.
*
*/


#include <stdio.h>
#include <_printf.h>
#include <_stdio.h>

/*---------------------------------------------------------------------*

Name printf - send formatted output to stdout

Usage int printf(const char *format, ...);

Prototype in stdio.h

Description sends formatted output to stdout

Return value the number of bytes output. In the event of an
error, printf returns EOF.

*---------------------------------------------------------------------*/
int cdecl _FARFUNC printf(const char *fmt, ...)
{
return( __vprinter ((putnF *)__fputn, stdout, fmt, (void _ss *) _va_ptr) );
}


garfieldking 2010-08-19
  • 打赏
  • 举报
回复
头文件中不是都看得到么?右键转到定义。

70,037

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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