Rev 13766 | Rev 13783 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 13766 | Rev 13771 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | #define int_buf_size 40 |
30 | #define int_buf_size 40 |
31 | 31 | ||
32 | /* this is rapid. Output string will be erased at the next call. */ |
32 | /* this is rapid. Output string will be erased at the next call. */ |
33 | char *int2str(int i) |
33 | char *int2str(int i) |
34 | { |
34 | { |
35 |
|
35 | int neg,t; |
36 |
|
36 | static char int_buf[int_buf_size]; |
37 |
|
37 | int_buf[int_buf_size-1]=0; |
38 |
|
38 | neg=0; if(i<0) {neg=1;i=-i;} |
39 |
|
39 | for(t=int_buf_size-2;t>=0;) { |
40 |
|
40 | int_buf[t--]=i%10+'0'; i/=10; |
41 |
|
41 | if(i==0) break; |
42 |
|
42 | } |
43 |
|
43 | if(t<=0) {int_buf[0]=0; return int_buf;} /* should never occur. */ |
44 |
|
44 | if(neg) int_buf[t--]='-'; |
45 |
|
45 | t++; return int_buf+t; |
46 | } |
46 | } |
47 | 47 | ||
48 | void *xmalloc(size_t n) |
48 | void *xmalloc(size_t n) |
49 | { |
49 | { |
50 | void *p; |
50 | void *p; |
Line 855... | Line 855... | ||
855 | {"ý","ý"}, |
855 | {"ý","ý"}, |
856 | {"Ý","Ý"}, |
856 | {"Ý","Ý"}, |
857 | {"ß","ß"}, |
857 | {"ß","ß"}, |
858 | {"«","«"}, |
858 | {"«","«"}, |
859 | {"»","»"}, |
859 | {"»","»"}, |
- | 860 | {"‹",""}, |
|
- | 861 | {"›",""}, |
|
- | 862 | {"‘",""}, |
|
- | 863 | {"’",""}, |
|
- | 864 | {"“",""}, |
|
- | 865 | {"”",""}, |
|
860 | {"&","&"}, |
866 | {"&","&"}, |
861 | {"<","<"}, |
867 | {"<","<"}, |
862 | {">","<"}, |
868 | {">","<"}, |
863 | {""","\""}, |
869 | {""","\""}, |
864 | {"¶","§"}, |
870 | {"¶","§"}, |