mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
convert ASCII TABs to ASCII SPACEs
Converted all ASCII tabs to ASCII spaces using a 8 character tab stop, for all files, except for all Makefiles (plus rpm.mk). The `git diff -w` reports no changes.
This commit is contained in:
44
help/fscanf
44
help/fscanf
@@ -5,11 +5,11 @@ SYNOPSIS
|
||||
fscanf(fs, fmt, x_1, x_2, ...)
|
||||
|
||||
TYPES
|
||||
fs file stream open for reading
|
||||
fmt string
|
||||
x_1, x_2, ... lvalues
|
||||
fs file stream open for reading
|
||||
fmt string
|
||||
x_1, x_2, ... lvalues
|
||||
|
||||
return null, nonnegative integer, or error value
|
||||
return null, nonnegative integer, or error value
|
||||
|
||||
DESCRIPTION
|
||||
If the current position for fs is EOF, the null value is returned.
|
||||
@@ -31,16 +31,16 @@ DESCRIPTION
|
||||
'%'. A single '%' read from fmt is taken to indicate the beginning of
|
||||
a conversion specification field consisting in succession of:
|
||||
|
||||
an optional '*',
|
||||
optional decimal digits,
|
||||
one of 'c', 's', 'n', 'f', 'e', 'i' or a scanset specifier.
|
||||
an optional '*',
|
||||
optional decimal digits,
|
||||
one of 'c', 's', 'n', 'f', 'e', 'i' or a scanset specifier.
|
||||
|
||||
A scanset specifier starts with '[' and an optional '^', then an optional
|
||||
']', then optional other characters, and ends with ']'. If any
|
||||
other sequence of characters follows the '%', characters before the
|
||||
first exceptional character (which could be the terminating null
|
||||
character of the fmt string) are ignored, e.g. the sequence " %*3d " does
|
||||
the same as " d ". If there is no '*' at the beginning of the specifier,
|
||||
the same as " d ". If there is no '*' at the beginning of the specifier,
|
||||
and the list x_1, x_2, ... has not been exhausted,
|
||||
a value will be assigned to the next lvalue in the list; if no lvalue
|
||||
remains, the reading of fs stops and the function returns the number
|
||||
@@ -68,7 +68,7 @@ DESCRIPTION
|
||||
|
||||
The cases 'f', 'e', 'r', 'i' may be considered to indicate expectation of
|
||||
floating-point, exponential, ratio, or integer representation of the
|
||||
number to be read. For example, 'i'
|
||||
number to be read. For example, 'i'
|
||||
might be taken to suggest a number like +2345; 'r' might suggest
|
||||
a representation like -27/49; 'e' might suggest a representation like
|
||||
1.24e-7; 'f' might suggest a representation like 27.145. However, there
|
||||
@@ -80,9 +80,9 @@ DESCRIPTION
|
||||
for + and -, and for * and /. Also acceptable is a trailing i to
|
||||
indicate an imaginary number. For example the expression
|
||||
|
||||
2+3/4*7i+3.15e7
|
||||
2+3/4*7i+3.15e7
|
||||
|
||||
would be interpreted as for an ordinary evaluation. A decimal fraction
|
||||
would be interpreted as for an ordinary evaluation. A decimal fraction
|
||||
may have more than one dot: dots after the first, which is taken to be
|
||||
the decimal point, are ignored. Thus "12.3..45e6.7" is interpreted
|
||||
as if it were "12.345e67".
|
||||
@@ -102,23 +102,23 @@ EXAMPLE
|
||||
; rewind(f)
|
||||
; fscanf(f, "Alpha Gamma")
|
||||
; fgets(f)
|
||||
"Beta Gamma"
|
||||
"Beta Gamma"
|
||||
; rewind(f)
|
||||
; fscanf(f, "%5c", a)
|
||||
1
|
||||
1
|
||||
; a
|
||||
"Alpha"
|
||||
"Alpha"
|
||||
; fgets(f)
|
||||
" Beta Gamma"
|
||||
" Beta Gamma"
|
||||
; rewind(f)
|
||||
; fscanf(f, "%3c%s%[^m]", a, b, c)
|
||||
3
|
||||
3
|
||||
; print a, b
|
||||
Alp ha
|
||||
; print c
|
||||
Beta Ga
|
||||
; fgets(f)
|
||||
"mma"
|
||||
"mma"
|
||||
|
||||
LIMITS
|
||||
The number of arguments is not to exceed 1024.
|
||||
@@ -137,7 +137,7 @@ SEE ALSO
|
||||
##
|
||||
## Calc is distributed in the hope that it will be useful, but WITHOUT
|
||||
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
||||
## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
||||
## Public License for more details.
|
||||
##
|
||||
## A copy of version 2.1 of the GNU Lesser General Public License is
|
||||
@@ -145,8 +145,8 @@ SEE ALSO
|
||||
## received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
##
|
||||
## Under source code control: 1996/04/30 03:05:18
|
||||
## File existed as early as: 1996
|
||||
## Under source code control: 1996/04/30 03:05:18
|
||||
## File existed as early as: 1996
|
||||
##
|
||||
## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
|
||||
## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|
||||
## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
|
||||
## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|
||||
|
Reference in New Issue
Block a user