mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.12.0
This commit is contained in:
18
help/fgets
18
help/fgets
@@ -17,16 +17,16 @@ DESCRIPTION
|
||||
If a line is read, it is returned, otherwise (EOF or ERROR) nil is returned.
|
||||
|
||||
EXAMPLE
|
||||
> fd = fopen("/tmp/newfile", "w")
|
||||
> fputs(fd, "chongo was here\n")
|
||||
> fd2 = fopen("/tmp/newfile", "r")
|
||||
> fgets(fd2)
|
||||
; fd = fopen("/tmp/newfile", "w")
|
||||
; fputs(fd, "chongo was here\n")
|
||||
; fd2 = fopen("/tmp/newfile", "r")
|
||||
; fgets(fd2)
|
||||
"chongo was here
|
||||
"
|
||||
|
||||
> fclose(fd2)
|
||||
> fd2 = fopen("/tmp/newfile", "r")
|
||||
> fgetline(fd2)
|
||||
; fclose(fd2)
|
||||
; fd2 = fopen("/tmp/newfile", "r")
|
||||
; fgetline(fd2)
|
||||
"chongo was here"
|
||||
|
||||
LIMITS
|
||||
@@ -55,8 +55,8 @@ SEE ALSO
|
||||
## received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
##
|
||||
## @(#) $Revision: 29.2 $
|
||||
## @(#) $Id: fgets,v 29.2 2000/06/07 14:02:33 chongo Exp $
|
||||
## @(#) $Revision: 29.3 $
|
||||
## @(#) $Id: fgets,v 29.3 2006/05/07 07:25:46 chongo Exp $
|
||||
## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/fgets,v $
|
||||
##
|
||||
## Under source code control: 1995/03/04 11:33:19
|
||||
|
Reference in New Issue
Block a user