3 <<atosfix16>>, <<atosfix32>>, <<atosfix64>>---string to signed fixed-point
20 __int16_t atosfix16(const char *<[s]>);
21 __int32_t atosfix32(const char *<[s]>);
22 __int64_t atosfix32(const char *<[s]>);
24 __int16_t _atosfix16_r(struct __reent *, const char *<[s]>);
25 __int32_t _atosfix32_r(struct __reent *, const char *<[s]>);
26 __int64_t _atosfix32_r(struct __reent *, const char *<[s]>);
30 __int16_t atosfix16(<[s]>)
33 __int32_t atosfix32(<[s]>)
36 __int64_t atosfix64(<[s]>)
39 __int16_t _atosfix16_r(<reent>, <[s]>)
40 struct _reent *<[reent]>;
43 __int32_t _atosfix32_r(<reent>, <[s]>)
44 struct _reent *<[reent]>;
47 __int64_t _atosfix64_r(<reent>, <[s]>)
48 struct _reent *<[reent]>;
52 <<atosfix16>> converts the initial portion of a string to a sign
53 + 15-bit fraction fixed point value.
54 <<atosfix32>> converts the initial portion of a string to a sign
55 + 31-bit fraction fixed point value.
56 <<atosfix64>> converts the initial portion of a string to a sign
57 + 63-bit fraction fixed point value.
58 <<atosfix16(s)>> is implemented as <<strtosfix16(s, NULL).>>
59 <<atosfix32(s)>> is implemented as <<strtosfix32(s, NULL).>>
60 <<atosfix64(s)>> is implemented as <<strtosfix64(s, NULL).>>
62 The alternate functions <<_atosfix16_r>>, <<_atosfix32_r>>,
63 and <<_atosfix64_r>> are reentrant versions.
64 The extra argument <[reent]> is a pointer to a reentrancy structure.
67 The functions return the converted value, if any. If no conversion was
68 made, <<0>> is returned. If saturation occurs, <<ERANGE>> is stored
72 <<atosfix16>>, <<atosfix32>>, and <<atosfix64>> are non-standard.
74 No supporting OS subroutines are directly required. The
75 OS subroutines required by <<strtod>> are used.
79 * Jeff Johnston - 02/13/2002
88 _DEFUN (_atosfix16_r
, (reent
, s
),
89 struct _reent
*reent _AND
92 return _strtosfix16_r (reent
, s
, NULL
);
97 _DEFUN (atosfix16
, (s
),
100 return strtosfix16 (s
, NULL
);
103 #endif /* !_REENT_ONLY */