- void *
- dlopen (const char *file, int mode)
- {
- struct link_map *new;
- void doit (void)
- {
- new = _dl_open (file ?: "", mode);
- }
- return _dlerror_run (doit) ? NULL : new;
- }
分析 file ?: "",等价于
if (file == NULL)
file = "";
else
file = file;
分析 file ?: "",等价于
if (file == NULL)
file = "";
else
file = file;