home *** CD-ROM | disk | FTP | other *** search
- #ifndef _DOPUS_MISC
- #define _DOPUS_MISC
-
- /*****************************************************************************
-
- Miscellaneous functions
-
- *****************************************************************************/
-
- // Hex ascii to long
- long Atoh(char *,long);
-
- // Long to ascii (various methods)
- void Itoa(long,char *,char);
- void ItoaU(unsigned long,char *,char);
-
- // Convert long value to byte string
- void BytesToString(unsigned long,char *,short,char);
-
- // Division to a string
- void DivideToString(char *,unsigned long,unsigned long,short,char);
-
- // 32-bit divide with remainder
- ULONG DivideU(unsigned long,unsigned long,unsigned long *,struct Library *);
-
- // Convert BSTR to char *
- void BtoCStr(BSTR,char *,long);
-
- // Random numbers
- void Seed(long);
- long Random(long);
-
- // Build ascii string from rawkey values
- void BuildKeyString(unsigned short,unsigned short,unsigned short,unsigned short,char *);
-
- // Valid key qualifiers
- USHORT QualValid(unsigned short);
-
- // Convert rawkey values to a character
- BOOL ConvertRawKey(unsigned short,unsigned short,char *);
-
- // String manipulation
- BOOL StrCombine(char *,char *,char *,long);
- BOOL StrConcat(char *,char *,long);
-
- // Calculate a percentage
- long CalcPercent(ULONG,ULONG,struct Library *);
-
- #endif
-