Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   C (https://www.askmehelpdesk.com/forumdisplay.php?f=438)
-   -   How Do I Call a Function From Other Program (https://www.askmehelpdesk.com/showthread.php?t=120670)

  • Aug 18, 2007, 05:51 AM
    cstudy1
    How Do I Call a Function From Other Program
    I Want to Know how to call and execute a function from other program in my current program?
  • Nov 20, 2007, 11:07 AM
    red_cartoon
    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.

  • All times are GMT -7. The time now is 02:35 PM.