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
- Host: GitHub
- URL: https://github.com/jwerle/isdir.c
- Owner: jwerle
- License: mit
- Created: 2014-07-31T21:20:43.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-31T21:24:21.000Z (almost 12 years ago)
- Last Synced: 2025-01-17T01:18:04.250Z (over 1 year ago)
- Language: C
- Size: 137 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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