tail head cat sleep
QR code linking to this page

manページ  — REMOVE

名称

remove – ディレクトリエントリの削除

内容

ライブラリ

Standard C Library (libc, -lc)

書式

#include <stdio.h>

int
remove(const char *path);

解説

remove() 関数は、 path によって指定されるファイルもしくはディレクトリを削除します。

path がディレクトリを指していた場合、 remove(path)rmdir(path) と同等です。 ファイルを指していた場合は、 unlink(path) と同等です。

戻り値

The remove function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error.

エラー

remove() 関数は、エラーが発生すると、ルーチン lstat(2), rmdir(2), unlink(2) で規定されているエラーを errno に設定することがあります。

関連項目

rmdir(2), unlink(2)

規格

remove() 関数は、 ISO/IEC 9899:1990 ("ISO C90") と -xpg4.2 に適合しています。

REMOVE (3) June 4, 1993

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

A typical Unix /bin or /usr/bin directory contains a hundred different kinds of programs, written by dozens of egotistical programmers, each with its own syntax, operating paradigm, rules of use ... strategies for specifying options, and different sets of constraints.
— The Unix Haters' handbook