K
Kelvin Moss
Hi all,
Which is the recommended style in production code for the following -
....
fp = fopen("xyz.txt", "r");
if (fp == NULL) {
....
}
OR
fp = fopen("xyz.txt", "r");
if (!fp) {
....
}
Thanks.
Which is the recommended style in production code for the following -
....
fp = fopen("xyz.txt", "r");
if (fp == NULL) {
....
}
OR
fp = fopen("xyz.txt", "r");
if (!fp) {
....
}
Thanks.