C库是Windows API的包装器吗? [英] is the C library a wrapper for windows API?

查看:51
本文介绍了C库是Windows API的包装器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




对于这个可能很愚蠢的问题很抱歉。

我正确地说我在Windows机器上使用的C库

真正利用windows API进行所有操作,例如打开

文件,打印到控制台等等。


提前致谢

Hi,

Sorry for the possibly silly question.
Am i right in saying that the C library i use on a windows machine
really utilises the windows API for all its operations e.g. opening
files, printing to the console etc.etc.

Thanks in advance

推荐答案

哎呀,我应该说我正在读一本书windows system

编程第3版,而我只是有点困惑至于
win32 API是什么。

我知道它本质上是windows的''界面'但是当一些

代码书中的片段使用例如windows.h和函数如

CreateFile我想知道这些被认为是

API的一部分还是只是包装器。


干杯

Oops, i should have said that i''m reading a book "windows system
programming 3rd edition", and i''m just getting a little confused as to
what the win32 API is.
I know its essentially the ''interface'' to windows but when some of the
code snippets in the book use e.g. windows.h and functions such as
CreateFile i''m wondering is it that these are considered part of the
API or again just wrappers.

Cheers


" mastermagrath" < po ********* @ virgin.netwrites:
"mastermagrath" <po*********@virgin.netwrites:

对于这个可能很愚蠢的问题很抱歉。

我是正确地说,我在Windows机器上使用的C库

真正利用windows API进行所有操作,例如打开

文件,打印到控制台等等。
Sorry for the possibly silly question.
Am i right in saying that the C library i use on a windows machine
really utilises the windows API for all its operations e.g. opening
files, printing to the console etc.etc.



可能。


AC库可以任何符合标准的方式实施

规格。在Windows上,最简单的方法是使用Windows API,这几乎是
。另一方面,一些标准的

库函数,例如< string.h>中的函数,可以在便携式C中实现
- 但是实现是如果有这样的优势,可以免费使用一些

操作系统提供的服务。


有关您的特定实施的更多详细信息,您将''我需要

查阅你系统的文档和/或询问系统特定的

新闻组。


- -

Keith Thompson(The_Other_Keith) ks***@mib.org < http:// www .ghoti.net / ~kst>

圣地亚哥超级计算机中心< *< http://users.sdsc.edu/~kst>

我们必须做点什么。这是事情。因此,我们必须这样做。

Probably.

A C library may be implemented in any way that meets the standard''s
specification. On Windows, the easiest way to do this is almost
certainly via the Windows API. On the other hand, some standard
library functions, such as the ones in <string.h>, can be implemented
in portable C -- but the implementation is free to use some
OS-provided service if there''s an advantage in doing so.

For more details about your particular implementation, you''ll need to
consult your system''s documentation and/or ask in a system-specific
newsgroup.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.


mastermagrath写道:
mastermagrath wrote:

>

对不起这个可能很愚蠢的问题抱歉。

我正确地说我在Windows机器上使用的C库

真正利用windows API进行所有操作,例如打开

文件,打印到控制台等等。
>
Sorry for the possibly silly question.
Am i right in saying that the C library i use on a windows machine
really utilises the windows API for all its operations e.g. opening
files, printing to the console etc.etc.



可能,但不一定。无论该库是什么,它都必须知道有关现有硬件的信息,可能还有运行

系统。


- -

Chuck F(cb********@yahoo.com)(cb********@maineline.net)

可用用于咨询/临时嵌入式和系统。

< http://cbfalconer.home.att.netUSE maineline地址!

Probably, but not necessarily. Whatever that library is, it has to
know things about the existing hardware, and probably the operating
system.

--
Chuck F (cb********@yahoo.com) (cb********@maineline.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.netUSE maineline address!


这篇关于C库是Windows API的包装器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆