mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.10.2t30
This commit is contained in:
30
help/isatty
Normal file
30
help/isatty
Normal file
@@ -0,0 +1,30 @@
|
||||
NAME
|
||||
isatty - returns 1 if fd assocatied with a tty
|
||||
|
||||
SYNOPSIS
|
||||
isatty(fd)
|
||||
|
||||
TYPES
|
||||
fd file
|
||||
|
||||
return int
|
||||
|
||||
DESCRIPTION
|
||||
This function returns 1 if fd is associated with a tty, 0 otherwise.
|
||||
|
||||
|
||||
EXAMPLE
|
||||
> print isatty(files(0)), isatty(files(1)), isatty(files(2))
|
||||
1 1 1
|
||||
> fd = fopen("/dev/null", "r")
|
||||
> isatty(fd)
|
||||
0
|
||||
|
||||
LIMITS
|
||||
fd must be associaed with an open file
|
||||
|
||||
LIBRARY
|
||||
none
|
||||
|
||||
SEE ALSO
|
||||
XXX - fill in
|
Reference in New Issue
Block a user