3 ms·
Obscure fact #37: Glibc's implementation of freopen opens /proc/self/fd/<n>, when the pathname is null, e.g.: freopen(NULL, "w", stdout);
by kazinator 3y ago
Obscure fact #37: Glibc's implementation of freopen opens /proc/self/fd/<n>, when the pathname is null, e.g.:
freopen(NULL, "w", stdout);