INLINE int
LQT_sReadNumber
(Sp, Resultp, StartOfBuffer, LengthOfBuffer)
unsigned char **Sp;
unsigned long *Resultp;
unsigned char *StartOfBuffer;
unsigned int LengthOfBuffer;
Purpose
Reads a number from its compressed binary representation stored the given string. The pointer pointed to by Sp is advanced to point to the first unread byte of the buffer. The retrieved number is stored in the variable pointed to by the given Resultp argument.
Returns
- -1 if the entire number was not read, because it wasn't all included in the given string; in this case, the pointer referred to by Sp will have been advanced by the number of bytes read, but the return value is useless.
- Zero is returned if the number was read successfully.
See Also: