static void my_function(my_type** my_ptr)

This is a discussion on static void my_function(my_type** my_ptr) within the C Programming forums, part of the General Programming Boards category; Hi All, Please can you advise me how I can access ' owner ' from inside function below? Thank you ...

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    1

    Question static void my_function(my_type** my_ptr)

    Hi All,

    Please can you advise me how I can access 'owner' from inside function below?

    Thank you for your time,
    Best regards
    James
    Code:
    typedef struct
    {
        int owner;
    } my_type;
    
    static void my_function(my_type** my_ptr)
    {
    
    }

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,159
    (**my_ptr).owner

    Or...

    (*my_ptr)->owner
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. [GLUT] Pointers to class methods
    By cboard_member in forum C++ Programming
    Replies: 13
    Last Post: 02-16-2006, 03:03 PM
  4. getting a headache
    By sreetvert83 in forum C++ Programming
    Replies: 41
    Last Post: 09-30-2005, 05:20 AM
  5. Half-life SDK, where are the constants?
    By bennyandthejets in forum Game Programming
    Replies: 29
    Last Post: 08-25-2003, 11:58 AM

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