mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 02:01:03 +00:00
([StdioStream -isClosed]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@813 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1c3393356a
commit
00fb974d7a
1 changed files with 6 additions and 0 deletions
|
@ -196,6 +196,12 @@ stdio_unchar_func(void *s, int c)
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL) isClosed
|
||||||
|
{
|
||||||
|
/* xxx Ideas about a better way to do this? */
|
||||||
|
return (fstat(fp) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
/* xxx Add "- (BOOL) isOpen" method? */
|
/* xxx Add "- (BOOL) isOpen" method? */
|
||||||
|
|
||||||
- (void) rewindStream
|
- (void) rewindStream
|
||||||
|
|
Loading…
Reference in a new issue