mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.12.0.2
This commit is contained in:
18
help/fopen
18
help/fopen
@@ -75,7 +75,7 @@ DESCRIPTION
|
||||
The truth value of an opened file is TRUE.
|
||||
|
||||
If the open is unsuccessful, the numeric value of errno is returned.
|
||||
You can the errno() builtin to determine what the errno number means.
|
||||
You can the strerror() builtin to determine what the errno number means.
|
||||
|
||||
EXAMPLE
|
||||
; fd = fopen("/etc/motd", "r")
|
||||
@@ -90,9 +90,11 @@ EXAMPLE
|
||||
; outfile
|
||||
FILE 4 "~/tmp/output" (writing, pos 0)
|
||||
|
||||
; badfile = fopen("not_a_file", "r")
|
||||
; if (!isfile(badfile)) print "error #" : badfile : ":", errno(badfile);
|
||||
error #2: No such file or directory
|
||||
; badfile = fopen("not_a_file", "r");
|
||||
; if (!isfile(badfile)) {
|
||||
;; printf("error(%d): %s\n", errno(badfile), strerror(badfile));
|
||||
;; }
|
||||
error(2): No such file or directory
|
||||
|
||||
LIMITS
|
||||
none
|
||||
@@ -103,9 +105,9 @@ LINK LIBRARY
|
||||
SEE ALSO
|
||||
errno, fclose, feof, ferror, fflush, fgetc, fgetline, fgets, files, fopen,
|
||||
fprintf, fputc, fputs, fseek, fsize, ftell, isfile, printf, prompt,
|
||||
fpathopen
|
||||
fpathopen, strerror
|
||||
|
||||
## Copyright (C) 1999 Landon Curt Noll
|
||||
## Copyright (C) 1999-2006 Landon Curt Noll
|
||||
##
|
||||
## Calc is open software; you can redistribute it and/or modify it under
|
||||
## the terms of the version 2.1 of the GNU Lesser General Public License
|
||||
@@ -121,8 +123,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.4 $
|
||||
## @(#) $Id: fopen,v 29.4 2006/05/07 07:18:26 chongo Exp $
|
||||
## @(#) $Revision: 29.6 $
|
||||
## @(#) $Id: fopen,v 29.6 2006/05/23 20:06:16 chongo Exp $
|
||||
## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/fopen,v $
|
||||
##
|
||||
## Under source code control: 1994/10/27 03:04:17
|
||||
|
Reference in New Issue
Block a user