...
This non-compliant code example relies exclusively on the file name to identify the file.
| Code Block | ||
|---|---|---|
| ||
intFILE *fd = openfopen(filename, O_RDWR"r"); if (fd != -1) { ... /* file opened */ } closefclose(fd); |
Compliant Solution (POSIX)
...
...
This non-compliant code example relies exclusively on the file name to identify the file.
| Code Block | ||
|---|---|---|
| ||
intFILE *fd = openfopen(filename, O_RDWR"r"); if (fd != -1) { ... /* file opened */ } closefclose(fd); |
...