<!DOCTYPE File PUBLIC "-//Liam Quin//DTD C API Documentation v1.1//EN" "doc.dtd"><File>
<Entry dir="h">
<Function File="../../src/h/numbers.h">
<Name>LQT_sReadNumber</Name>
<Class>Database/Physical
<Purpose>
<P>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.</P>
<Returns>
<LIST><LI>-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.
<LI>Zero is returned if the number was read successfully.</LI>
</LIST>
<SeeAlso>
LQT_sWriteNumber
</Function>
<Decl>
INLINE int
LQT_sReadNumber(Sp, Resultp, StartOfBuffer, LengthOfBuffer)
    unsigned char **Sp;
    unsigned long *Resultp;
    unsigned char *StartOfBuffer;
    unsigned int LengthOfBuffer;
</Decl>
</Entry>
