Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現在の作業ディレクトリ(pwd)を取得するためにシステムコールを使用しているcでcgiプログラムがあります。を使用system(pwd);しましたが、これにより、現在必要のないディレクトリ名が画面(html)に出力されます。system() 関数で何も表示しないようにする方法はありますか? (表示が必要な場合にのみ出力が表示される、php の shell_exec() に似たもの)。
system(pwd);