Diferrence between access() with F_OK|R_OK and checking NULL pointer?

前端 未结 0 374
青春惊慌失措
青春惊慌失措 2021-01-15 02:04

I\'d like to open a file, but there is three cases which can happen:

  1. fopen() doesn\'t allocate anything (eg. memory limit).
  2. The file doesn\'t exist.
相关标签:
回答
  • 消灭零回复
提交回复
热议问题