passing arg2 of 'listFind' from incompatible pointer type

Posted by lego69 on Stack Overflow See other posts from Stack Overflow or by lego69
Published on 2010-05-12T08:08:15Z Indexed on 2010/05/12 8:14 UTC
Read the original article Hit count: 161

Filed under:
|
|
|

Hello, I've got some problem with my function and don't know how to solve this problem, This is my code:

ListResult result=listFind(currentLines, compareBasicLines, &linePrototype);  <-here problem

compareBasicLines pointer to function

int compareBasicLines(ptrLine line1, ptrLine line2){
    COMPARE_NUMBER_STRINGS(line1, line2);
}

COMPARE_NUMBER_STRINGS(line1, line2); defined in another file

#define COMPARE_NUMBER_STRINGS(var1, var2)                              \
                    if(var1 == NULL || var2 == NULL){                   \
                        return 0;                                       \
                    }                                                   \
                    return strcmp(var1->strNumber, var2->strNumber);

thanks in advance for everyone

© Stack Overflow or respective owner

Related posts about c

    Related posts about eclipse