Thread: calling function help please!!!!!!!!!

  1. #1
    Registered User
    Join Date
    Apr 2011

    calling function help please!!!!!!!!!

    lets say if i have a function like this
    void getData(FILE *spData, INFO list[]);

    how do i call this function in main ?
    i mean what will the function call of this look like ?

    thanx in advance

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    int main( void )
        FILE *fp;
        INFO list[ SOMESIZE ];
        getData( fp, list );
    Hope is the first step on the road to disappointment.

  3. #3
    Third Eye Babkockdood's Avatar
    Join Date
    Apr 2010
    Quzah nailed it, assuming you defined the INFO data type elsewhere.
    Quote Originally Posted by The Jargon File
    Microsoft Windows - A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Calling a function inside a function
    By kizyle502 in forum C Programming
    Replies: 1
    Last Post: 09-17-2009, 11:29 AM
  2. Replies: 15
    Last Post: 06-09-2009, 02:19 AM
  3. function calling within another function error
    By bazzano in forum C Programming
    Replies: 2
    Last Post: 03-11-2006, 01:40 AM
  4. Calling Cdocument function in Cview function
    By RancidWannaRiot in forum Windows Programming
    Replies: 5
    Last Post: 09-22-2005, 12:09 PM
  5. Question on function syntax and calling function
    By cbrman in forum C Programming
    Replies: 10
    Last Post: 10-05-2003, 05:32 PM