473,508 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

about header files

hi,
I wish to know whjat are all the header files used in c and their
use with example.
Regards,
sudha.
Nov 14 '05 #1
5 1079
csudha <su**********@yahoo.com> wrote:
I wish to know whjat are all the header files used in c and their
use with example.


Could you be a bit more specific? There are probably millions and
millions of header files, so a complete listing, even without
examples of their use, would be a bit long for a posting (not that
I claim to have a complete list;-)

If you mean the C standard header files here's a list of all
of them according to the C99 standard:

<assert.h>
<complex.h> *
<ctype.h>
<errno.h>
<fenv.h> *
<float.h>
<inttypes.h> *
<iso646.h> *
<limits.h>
<locale.h>
<math.h>
<setjmp.h>
<signal.h>
<stdarg.h>
<stdbool.h> *
<stddef.h>
<stdint.h> *
<stdio.h>
<stdlib.h>
<string.h>
<tgmath.h> *
<time.h>
<wchar.h> *
<wctype.h> *

(the star marks the ones that were not already in the C89 standard).
As you can see that are still quite a lot and even trying to explain
what they are good for would make this post rather long-winded. It
would probably be a better idea to get a decent book on C that ex-
plains in all the required details what they do.

Regards, Jens
--
\ Jens Thoms Toerring ___ Je***********@physik.fu-berlin.de
\__________________________ http://www.toerring.de
Nov 14 '05 #2
csudha wrote:
hi,
I wish to know whjat are all the header files used in c and their
use with example.
Regards,
sudha.

Header files contain declarations that are needed in the rest of the
code that uses them.

This declarations can be:
1: #defines
2: Data type declarations (structures, global variables, etc)
3: Prototypes.

jacob

Nov 14 '05 #3
On 16 Sep 2004 04:01:11 -0700, su**********@yahoo.com (csudha) wrote:
hi,
I wish to know whjat are all the header files used in c and their
use with example.
Regards,
sudha.


This information will be in almost any textbook on C.

--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 14 '05 #4

"csudha" <su**********@yahoo.com> wrote

I wish to know whjat are all the header files used in c and their
use with example.

You've got three classes of header.
1) standard library headers.
2) third party library headers.
3) headers you write yourself, specific to the program.

Conventionally, class 1 and 2 are #included

#include <stdlib.h>

class 3 is # included

#include "myheader.h"

#include is just a wordprocessing command, which includes the test of
another file in the target. Howewver conventionally headers contain external
variables, structures, #defines, typedefs, and prototypes.

The idea is that you give the #including file an interface to the functions
you put in the header.
Nov 14 '05 #5
In <ci**********@news-reader4.wanadoo.fr> jacob navia <ja***@jacob.remcomp.fr> writes:
csudha wrote:
hi,
I wish to know whjat are all the header files used in c and their
use with example.
Regards,
sudha.

Header files contain declarations that are needed in the rest of the
code that uses them.

This declarations can be:
1: #defines
2: Data type declarations (structures, global variables, etc)
3: Prototypes.


4: inline function definitions (for projects that can afford using them)

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Currently looking for a job in the European Union
Nov 14 '05 #6

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

Similar topics

2
2012
by: Albert Tu | last post by:
Hi, I am learning and pretty new to Python and I hope your guys can give me a quick start. I have an about 1G-byte binary file from a flat panel x-ray detector; I know at the beggining there...
3
5111
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(...
2
2194
by: Kevin Joplin | last post by:
Hi there, I've almost finished writing simple server application and i have one little doubt. Suppose we have main server code in server.c file. Rest of the code we divided into some pices and put...
13
1532
by: tsoukase | last post by:
Hello, two questions: 1) Why is a library a collection of compiled source-files while each header-file is a single source? Would it be more efficient if they were both either compiled or not?...
10
5480
by: PCHOME | last post by:
Hi! Would someone please help me thess C error(in gcc on Linux)? The compiler continues to give me: readLP.o: In function `Input_Problem': readLP.o(.text+0x0): multiple definition of...
4
2019
by: Christoph Scholtes | last post by:
Hi, I have some questions about header files: Say I have a file functions.c which contains a couple of functions. I have declared some structs in this file too. The structs are defined in...
8
1579
by: Bert | last post by:
Hello, Where can I find good information about who to interpret information from headers of liberaries? Thanks a lot.
10
1928
by: parag_paul | last post by:
HI all, Suppose I have a huge code base, And I have a very common header file. Now there are mulitple places where this header file is kept. This header file cannot be factored as it has...
4
2729
by: mdh | last post by:
K&R briefly mention splitting programs into seperate files.(page 82) Using my compiler (X-code) I noticed that creating a header file gives, as expected one .h file, but creating a new ".c" file...
3
2562
by: KIRAN | last post by:
Hello all, My question is about the way of including header files(*.h) in source files (*.c) I have three folders, -build ( for project makefiles) -include ( for *.h files) -src (for *.c...
0
7328
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
7388
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
7499
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5631
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5055
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3199
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1561
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
422
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.