This question already has an answer here:
- How do I use the conditional operator? 8 answers
- Statement with ? in C [duplicate] 6 answers
Can some one help me understand what the second argument of this function is doing
expandWildcard(newPrefix, (*temp == '/')?++temp:temp);
temp is a char pointer
and also what this if statement means
if (suffix[0] == '.') {
arr[counter++] = (argument[0] != '\0')?strdup(argument):strdup(enter->d_name);
}
Aucun commentaire:
Enregistrer un commentaire