void function(type **, type *)

This is a discussion on void function(type **, type *) within the C Programming forums, part of the General Programming Boards category; I m calling a function function(&h,p) where h and p are pointers The prototype of function is function(type **h,*p) But ...

  1. #1
    John Wallace
    Guest

    Angry void function(type **, type *)

    I m calling a function
    function(&h,p)
    where h and p are pointers

    The prototype of function is
    function(type **h,*p)
    But C compiler tell me that can convert type ** to type **, I can't understand that, do you?

  2. #2
    C-Dumbie
    Guest

    Re: void function(type **, type *)

    Originally posted by John Wallace
    I m calling a function
    function(&h,p)
    where h and p are pointers

    The prototype of function is
    function(type **h,*p)
    But C compiler tell me that can convert type ** to type **, I can't understand that, do you?
    what data structure did you define for h and p as actual parameters?

    C-Dumbie

  3. #3
    Registered User Seek n Destroy's Avatar
    Join Date
    Sep 2002
    Posts
    9

    aclaration for type of previous question

    The type of *h and *p is
    Code:
    typedef struct nodo{
                                     struct data;
                                     struct nodo *next
                                    }nodo;
    [code tags added by ygfperson]

  4. #4
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    Can you show the code where it is about and the exact compiler error?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to better manage large .cpp files
    By 39ster in forum C++ Programming
    Replies: 6
    Last Post: 08-25-2008, 08:24 AM
  2. LNK2001 ERROR!!! need help
    By lifeafterdeath in forum C++ Programming
    Replies: 7
    Last Post: 05-27-2008, 05:05 PM
  3. ChangeDisplaySettings - Blank?
    By Tonto in forum Windows Programming
    Replies: 13
    Last Post: 12-26-2006, 03:17 PM
  4. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 06:33 AM
  5. getting a headache
    By sreetvert83 in forum C++ Programming
    Replies: 41
    Last Post: 09-30-2005, 05:20 AM

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