PDA

View Full Version : How Do I Call a Function From Other Program


cstudy1
Aug 18, 2007, 05:51 AM
I Want to Know how to call and execute a function from other program in my current program?

red_cartoon
Nov 20, 2007, 11:07 AM
Say the other file is other.c

You have to include this in you current file using :

# include "other.c"

Make sure you don't have a main() in the other.c
Now you can call the functions in other.c in the current file as well.