Re: .h files
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Thu, 21 Feb 2008 08:56:42 -0500
johnnash wrote:
Ok I have a doubt regarding .h files. I basically have two modules
in my software program - a.c and b.c
There is .h file called d.h. d.h contains prototypes of functions
in a.c so whenever i have to use functions of a.c i simply need to
include d.h. My question is can i also add the prototypes of
functions in b.c in d.h so that i only need to d.h in main.c so as
to access functions of both a.c and b.c.
No. You should match header files with source files, so each
expresses the external access permitted to the content of that
source file. You should have a.h an b.h, and #include the h files
for the units you use.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
--
Posted via a free Usenet account from http://www.teranews.com
.
- Follow-Ups:
- Re: .h files
- From: Kenneth Brody
- Re: .h files
- References:
- .h files
- From: johnnash
- .h files
- Prev by Date: Re: printf() Specification for size_t?
- Next by Date: Re: help needed on coversin of an char array to an integer
- Previous by thread: Re: .h files
- Next by thread: Re: .h files
- Index(es):
Relevant Pages
|