Thread: What type of paramaters would be passed into these type of function

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    115

    What type of paramaters would be passed into these type of function

    In the 2 functions below what type of paramaters would be passed into these:

    Code:
    int name (fname *b)
    
    int name (fname *b, lname *d)
    Confused on what fname and lname are.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    And we can't really tell you either - since fname and lname are not standard types, they are defined somewhere in your code as typedef's.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    32
    It couldn't be as simple as this are the values set in those pointers. Could it?

  4. #4
    Registered User
    Join Date
    Apr 2008
    Posts
    115

    I should have stated that both fname and lname are structures

    They are both structures. Does that mean *b and *d are just pointers to the structure? Thanks.

  5. #5
    Registered User
    Join Date
    Apr 2008
    Posts
    115

    Think I got it - Please confirm

    These are just pointers to a data type which in this case will be a specific structure declared in typedef??

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Yes, they are just pointers to that struct.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  7. #7
    Registered User
    Join Date
    Apr 2008
    Posts
    115

    Thanks

    Thank you for helping!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 01:17 AM
  2. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  3. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  4. Calling a Thread with a Function Pointer.
    By ScrollMaster in forum Windows Programming
    Replies: 6
    Last Post: 06-10-2006, 08:56 AM
  5. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM