Answers for "C:\Users\BBC\Documents\c n c++ project\8PuzzleSolve\main.c|38|warning: suggest parentheses around assignment used as truth value [-Wparentheses]|"

C++
0

C:\Users\BBC\Documents\c n c++ project\8PuzzleSolve\main.c|38|warning: suggest parentheses around assignment used as truth value [-Wparentheses]|

while ( (list = list->next) )
Posted by: Guest on April-08-2022
0

C:\Users\BBC\Documents\c n c++ project\8PuzzleSolve\main.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;
}
Posted by: Guest on April-08-2022

Browse Popular Code Answers by Language