Subversion Repositories SvarDOS

Rev

Rev 1959 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1959 Rev 1964
Line 15... Line 15...
15
 
15
 
16
#include "trim.h"
16
#include "trim.h"
17
#include "helpers.h"
17
#include "helpers.h"
18
 
18
 
19
 
19
 
-
 
20
/* converts a CRC32 into a (hex) string */
-
 
21
char *crc32tostring(char *s, unsigned long val) {
-
 
22
  signed char i;
-
 
23
  static char h[] = "0123456789ABCDEF";
-
 
24
  for (i = 7; i >= 0; i--) {
-
 
25
    s[i] = h[val & 15];
-
 
26
    val >>= 4;
-
 
27
  }
-
 
28
  s[8] = 0;
-
 
29
  return(s);
-
 
30
}
-
 
31
 
20
 
32
 
21
/* outputs a NUL-terminated string to stdout */
33
/* outputs a NUL-terminated string to stdout */
22
void output(const char *s) {
34
void output(const char *s) {
23
  _asm {
35
  _asm {
24
    push ds
36
    push ds