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:
10
help/file
10
help/file
@@ -59,12 +59,12 @@ Using files
|
||||
function returns the numeric value of errno if there had been an
|
||||
error using the file, or the null value if there was no error.
|
||||
|
||||
The builtin 'errno' can be use to convert an errno number into
|
||||
The builtin 'strerror' can be use to convert an errno number into
|
||||
a slightly more meaningful error message:
|
||||
|
||||
badfile = fopen("not_a_file", "r");
|
||||
if (!isfile(badfile)) {
|
||||
print "error #" : badfile : ":", errno(badfile);
|
||||
print "error #" : badfile : ":", strerror(badfile);
|
||||
}
|
||||
|
||||
File values can be printed. When this is done, the filename of the
|
||||
@@ -166,7 +166,7 @@ Using files
|
||||
but the output is returned as a string value instead of being
|
||||
printed.
|
||||
|
||||
## 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
|
||||
@@ -182,8 +182,8 @@ Using files
|
||||
## 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: file,v 29.2 2000/06/07 14:02:33 chongo Exp $
|
||||
## @(#) $Revision: 29.3 $
|
||||
## @(#) $Id: file,v 29.3 2006/05/23 19:15:48 chongo Exp $
|
||||
## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/file,v $
|
||||
##
|
||||
## Under source code control: 1991/07/21 04:37:19
|
||||
|
Reference in New Issue
Block a user