27 |
dopiszBuff = (char *) realloc(dopiszBuff, 2 * dlugosc); |
dopiszBuff = (char *) realloc(dopiszBuff, 2 * dlugosc); |
28 |
|
|
29 |
strncat(dopiszBuff, co, strlen(co)); |
strncat(dopiszBuff, co, strlen(co)); |
30 |
(char *) *bufor = dopiszBuff; |
*bufor = dopiszBuff; |
31 |
} |
} |
32 |
|
|
33 |
void CzyscBufor (char **bufor, int ile) |
void CzyscBufor (char **bufor, int ile) |
34 |
{ |
{ |
35 |
memset(*bufor, 0, ile); |
memset(*bufor, 0, ile); |
36 |
} |
} |
37 |
|
|
38 |
|
#ifdef SPASMDEBUG |
39 |
|
void WyswietlBin (ulint liczba) |
40 |
|
{ |
41 |
|
int i; |
42 |
|
ulint maska = 0x80000000; |
43 |
|
|
44 |
|
for ( i = 32; i > 0; i--) |
45 |
|
{ |
46 |
|
printf("%d", ((liczba & maska) > 0)?1:0); |
47 |
|
maska = maska >> 1; |
48 |
|
} |
49 |
|
|
50 |
|
} |
51 |
|
#endif |