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:
@@ -5,11 +5,11 @@ SYNOPSIS
|
||||
strscanf(str, fmt, x_1, x_2, ...)
|
||||
|
||||
TYPES
|
||||
str string
|
||||
fmt string
|
||||
x_1, x_2, ... lvalues
|
||||
str string
|
||||
fmt string
|
||||
x_1, x_2, ... lvalues
|
||||
|
||||
return null, nonnegative integer, or error value
|
||||
return null, nonnegative integer, or error value
|
||||
|
||||
DESCRIPTION
|
||||
If the str is "", the null value is returned.
|
||||
@@ -17,7 +17,7 @@ DESCRIPTION
|
||||
Otherwise, until the terminating null character of either fmt or str
|
||||
is reached, characters other than '%' and whitespace are read from
|
||||
fmt and compared with the corresponding characters read from str.
|
||||
If the characters match, reading continues. If they do not match
|
||||
If the characters match, reading continues. If they do not match
|
||||
an integer value is returned. If whitespace is encountered in fmt,
|
||||
starting at the current positions in fmt and str, any whitespace
|
||||
characters are skipped and reading and comparison begins as before
|
||||
@@ -29,16 +29,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
|
||||
@@ -65,7 +65,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
|
||||
@@ -77,9 +77,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".
|
||||
@@ -95,12 +95,12 @@ EXAMPLE
|
||||
; global a, b, c, d
|
||||
; A = "abc xyz 234.6 alpha"
|
||||
; strscanf(A, "%s%*[^0123456789]%f%n", a, b, c)
|
||||
3
|
||||
3
|
||||
; print a, b, c
|
||||
; abc 234.6 13
|
||||
|
||||
; strscanf(A, "%*13c%s", d);
|
||||
1
|
||||
1
|
||||
; print d
|
||||
; alpha
|
||||
|
||||
@@ -122,7 +122,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
|
||||
@@ -130,8 +130,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