Last active
February 1, 2017 04:36
-
-
Save infosec-intern/76cd687ce3ca831e423a35217e70d61a to your computer and use it in GitHub Desktop.
Integrate if statements like the following directly in the for loop conditional
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(i = 0; i < GLOB_MAX && globs[i][0] != '\0'; i++) { | |
// if (globs[i][0] == '\0') { | |
// continue; | |
// } | |
printf("Glob[%d] = %s\n", i, globs[i]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A comma between conditional statements acts like a semicolon usually would
A || acts like a logical OR statement
A && acts like a logical AND statement
I placed && there because I need both conditions to be true to get the for loop to run