1 2 3 4 5 6 7 8
#include <stdio.h> int main() { FILE *f; if ( (f = fopen("/dev/null", "r")) ) puts("file is open"); return 0; }