473,388 Members | 1,526 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

learn about header files

Hi,
unix provides man pages for library functions. Does it provide a means
for me to learn the library files (.h extended files) (what functions
they provide wat constants they define etc) for e.g., man pages for
example.h
Ofcourse, the header files themselves can be looked into in "include"
directory but thats probably not the easiest way to learn about them.
about using grep, search the man pages that contain entry for
'example.h', probably not a good idea

greenhorn.

Nov 14 '05 #1
2 1272
Greenhorn wrote:

Hi,
unix provides man pages for library functions.
Does it provide a means
for me to learn the library files (.h extended files) (what functions
they provide wat constants they define etc) for e.g., man pages for
example.h
Ofcourse, the header files themselves can be looked into in "include"
directory but thats probably not the easiest way to learn about them.
One problem associated with doing that,
is the assumption that the examples of reserved naming conventions
which are found in headers, are examples of normal code.
about using grep, search the man pages that contain entry for
'example.h', probably not a good idea


N869
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n869/

7.1.1 Definitions of terms
7.1.4 Use of library functions

and

C89 last draft
http://dev.unicals.com/papers/c89-draft.html

and the actual standard (available at a price somewhere),
have a readable description of the standard library.

Be sure to read the introduction to each header,
prior to reading about any function in particular.
and in N869 also read,
"7.1.1 Definitions of terms" and "7.1.4 Use of library functions"
and in C89 last draft,
"4.1.1 Definitions of terms", "4.1.6 Use of library functions"
Nov 14 '05 #2
Greenhorn wrote:

unix provides man pages for library functions. Does it provide a
means for me to learn the library files (.h extended files) (what
functions they provide wat constants they define etc) for e.g.,
man pages for example.h

Of course, the header files themselves can be looked into in
"include" directory but thats probably not the easiest way to
learn about them. about using grep, search the man pages that
contain entry for 'example.h', probably not a good idea


The C standard contains a complete description of the contents of
the standard C header files. The last draft of the standard is
available in text form as N869.txt. google for it.

The actual content of the headers on your system are probably not
too useful. They can be expected to contain non-standard things
used to get the proper standard effects ON YOUR system. The
results are often confusing and undocumented.

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

Nov 14 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dharmesh Gupta | last post by:
Hi All, i am new to header files , and have a basic question , i have made my program in three files namely, idr_bpl.cpp( contains class definitions and function definitions) bpl.cpp(...
354
by: Montrose... | last post by:
After working in c# for a year, the only conclusion I can come to is that I wish I knew c. All I need is Linux, the gnu c compiler and I can do anything. Web services are just open sockets...
3
by: Chris Mantoulidis | last post by:
Seperate compilation (that's what it's called, right?) seems to be quite popular, so I decided to get some info about it, and (d'oh) use it... But it's whole structure seems weird to me... ...
16
by: matthurne | last post by:
I just started learning C++ on my own...I'm using Accelerated C++. Something it hasn't explained and I keep wondering about is how header files actually work. I suspect it doesn't get into it...
11
by: Steven T. Hatton | last post by:
In the past there have been lengthy discussiions regarding the role of header files in C++. People have been very adamat about header files serving as in interface to the implementation. I do...
3
by: pooja | last post by:
Suppose i have created a class c1 with f1()in c1.cpp and included this c1.cpp in file1.cpp file , which is also having main() by giving the statement #include "c1.cpp". the same i can do by...
18
by: John Smith | last post by:
Hi all What does the group think of the practise of including one header file from inside another? I have some legacy code where this has been done, and it creates a dependency on a module...
4
by: __frank__ | last post by:
I have some difficulties to learn lists and its coding in C language. Is there a site that explain this argument in a simple way (with examples of course)? I tried to "google" but results are...
9
by: chat | last post by:
Hi, every body. I have 3 files like this: -------------------------------------------------------- file name : header.h #ifndef TEST_H #define TEST_H int a=1; double b=0.5;
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.