([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:
Andrew McCallum 1996-01-25 15:23:06 +00:00
parent b9d8479480
commit 9bd48868b3

View file

@ -196,6 +196,12 @@ stdio_unchar_func(void *s, int c)
fclose(fp);
}
- (BOOL) isClosed
{
/* xxx Ideas about a better way to do this? */
return (fstat(fp) == 0);
}
/* xxx Add "- (BOOL) isOpen" method? */
- (void) rewindStream