Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1665 | Nasarus | 1 | |
2 | |||
3 | |||
4 | { |
||
5 | unsigned i; |
||
6 | |||
7 | |||
8 | *((char *)mem+i) = (char) c; |
||
9 | |||
10 | |||
11 | } |
||
12 | |||
13 | |||
14 | |||
15 | { |
||
16 | |||
17 | |||
18 | |||
19 | |||
20 | *(char *)(dst+i) = *(char *)(src+i); |
||
21 | |||
22 | |||
23 | } |
||
24 | |||
25 | |||
26 | |||
27 | { |
||
28 | int i; |
||
29 | for (i=0;i |
||
30 | { |
||
31 | if (*(unsigned char*)buf1<*(unsigned char*)buf2) |
||
32 | return -1; |
||
33 | if (*(unsigned char*)buf1>*(unsigned char*)buf2) |
||
34 | return 1; |
||
35 | } |
||
36 | return 0; |
||
37 | } |
||
38 | |||
39 | |||
40 | { |
||
41 | |||
42 | |||
43 | |||
44 | |||
45 | while (strDest[i] != '\0') |
||
46 | i++; |
||
47 | |||
48 | |||
49 | ; |
||
50 | } |
||
51 | |||
52 | |||
53 | |||
54 | { |
||
55 | |||
56 | |||
57 | { |
||
58 | if (*string1<*string2) |
||
59 | return -1; |
||
60 | if (*string1>*string2) |
||
61 | return 1; |
||
62 | |||
63 | |||
64 | return 0; |
||
65 | |||
66 | |||
67 | string2++; |
||
68 | } |
||
69 | |||
70 | |||
71 | |||
72 | |||
73 | |||
74 | { |
||
75 | unsigned i; |
||
76 | |||
77 | |||
78 | while ((strDest[i] = strSource[i]) != '\0') |
||
79 | i++; |
||
80 | |||
81 | |||
82 | |||
83 | |||
84 | |||
85 | { |
||
86 | unsigned i; |
||
87 | |||
88 | |||
89 | return strDest; |
||
90 | |||
91 | |||
92 | while ((strDest[i] = strSource[i]) != '\0') |
||
93 | if ( (n-1) == i ) |
||
94 | break; |
||
95 | else |
||
96 | i++; |
||
97 | |||
98 | |||
99 | } |
||
100 | |||
101 | |||
102 | |||
103 | { |
||
104 | int i; |
||
105 | |||
106 | |||
107 | while (*string++) i++; |
||
108 | return i; |
||
109 | } |
||
110 | |||
111 | |||
112 | |||
113 | |||
114 | { |
||
115 | while (*string) |
||
116 | { |
||
117 | if (*string==c) |
||
118 | return (char*)string; |
||
119 | string++; |
||
120 | } |
||
121 | return (char*)0; |
||
122 | }*string2) |
||
123 | >*(unsigned> |
||
124 |