/* FUNCTION <>, <>, <>---string to unsigned fixed-point INDEX atoufix16 INDEX atoufix32 INDEX atoufix64 INDEX _atoufix16_r INDEX _atoufix32_r INDEX _atoufix64_r SYNOPSIS #include __uint16_t atoufix16(const char *<[s]>); __uint32_t atoufix32(const char *<[s]>); __uint64_t atoufix32(const char *<[s]>); __uint16_t _atoufix16_r(struct __reent *, const char *<[s]>); __uint32_t _atoufix32_r(struct __reent *, const char *<[s]>); __uint64_t _atoufix32_r(struct __reent *, const char *<[s]>); DESCRIPTION <> converts the initial portion of a string to a 16-bit fraction unsigned fixed point value. <> converts the initial portion of a string to a 32-bit fraction unsigned fixed point value. <> converts the initial portion of a string to a 64-bit fraction unsigned fixed point value. <> is implemented as <> <> is implemented as <> <> is implemented as <> The alternate functions <<_atoufix16_r>>, <<_atoufix32_r>>, and <<_atoufix64_r>> are reentrant versions. The extra argument <[reent]> is a pointer to a reentrancy structure. RETURNS The functions return the converted value, if any. If no conversion was made, <<0>> is returned. If saturation occurs, <> is stored in errno. PORTABILITY <>, <>, and <> are non-standard. No supporting OS subroutines are directly required. The OS subroutines required by <> are used. */ /* * Jeff Johnston - 02/13/2002 */ #ifdef __SPE__ #include #include <_ansi.h> __uint16_t _atoufix16_r (struct _reent *reent, const char *s) { return _strtoufix16_r (reent, s, NULL); } #ifndef _REENT_ONLY __uint16_t atoufix16 (const char *s) { return strtoufix16 (s, NULL); } #endif /* !_REENT_ONLY */ #endif /* __SPE__ */