GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 08-Nov-2006, 22:14
rameshs rameshs is offline
New Member
 
Join Date: Nov 2006
Posts: 1
rameshs is on a distinguished road
Arrow

how to call function from another to my file


hi,

how can i call functions from anther file to my C file.

for example,

I am write main function in mymain.c and want to call fun1() from callfun.c in another file.

now I want to call callfun.c from my main() function in mymain.c.

Can i include the c file callfun.c or how can i call the function fun1().

thank you.
  #2  
Old 09-Nov-2006, 07:51
neo neo is offline
New Member
 
Join Date: Oct 2006
Posts: 13
neo is on a distinguished road

Re: how to call function from another to my file


Declare the files in a common header file.
Compile the files and link them both to get the final executable?
 
 

Recent GIDBlogToyota - 2008 September Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Airport Log program using 3D linked List : problem reading from file batrsau C Programming Language 11 29-Feb-2008 07:44
[Include] Doubly-linked List dsmith C Programming Language 6 14-Apr-2006 13:12
[GIM] gim.h dsmith C Programming Language 0 18-Jan-2005 08:48
How to detect end of file with read() function call? nkhambal C Programming Language 6 12-Oct-2004 01:08

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 05:00.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.