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

This is a discussion on calling function help please!!!!!!!!! within the C Programming forums, part of the General Programming Boards category; lets say if i have a function like this void getData(FILE *spData, INFO list[]); how do i call this function ...

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    48

    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
    Posts
    14,826
    Code:
    int main( void )
    {
        FILE *fp;
        INFO list[ SOMESIZE ];
    
        getData( fp, list );
    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Third Eye Babkockdood's Avatar
    Join Date
    Apr 2010
    Posts
    352
    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, 12:29 PM
  2. Replies: 15
    Last Post: 06-09-2009, 03: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, 01:09 PM
  5. Question on function syntax and calling function
    By cbrman in forum C Programming
    Replies: 10
    Last Post: 10-05-2003, 06:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21