Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C:UsersBBCDocumentsc n c++ project8PuzzleSolvemain.c|38|warning: suggest parentheses around assignment used as truth value [-Wparentheses]|

struct PIDList* 
getRecordForPID(struct PIDList* list, pid_t pid) {
    while(list = list->next)
        if (list->pid == pid)
            return list;

    return NULL;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #suggest #parentheses #assignment #truth
ADD COMMENT
Topic
Name
9+9 =