April 22, 2004

mktemp, mkstemp

template 最後要是 XXXXXX
mktemp 有安全性問題, 不要使用, man mktemp BUG 段, 需使用 mkstemp


char temp[]="/tmp/temp-XXXXXX";
mkstemp(temp);

Posted by pank at April 22, 2004 09:09 AM
Comments
Post a comment













Remember personal info?