An open API service indexing awesome lists of open source software.

https://github.com/jwerle/isdir.c

Determine if path is a directory
https://github.com/jwerle/isdir.c

Last synced: 2 months ago
JSON representation

Determine if path is a directory

Awesome Lists containing this project

README

          

isdir ()
======

Determine if path is a directory

## install

```sh
$ clib install jwerle/isdir.c
```

## synopsis

```c
#include

int
isdir (const char *);
```

## return values

Returns `0` if `path` is a directory. Otherwise, `1` is returned.

## example

```c
int
main (int argc, char **argv) {
return argc ? 1 isdir(argv[0]) : 1;
}
```

## license

MIT