/[smarc]/smarc/src/spasm/ascii.c
ViewVC logotype

Diff of /smarc/src/spasm/ascii.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by batonik, Thu Dec 19 20:45:37 2002 UTC revision 1.2 by batonik, Sat Dec 28 21:29:26 2002 UTC
# Line 27  void Dopisz (char **bufor, char *co) Line 27  void Dopisz (char **bufor, char *co)
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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26