Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1005 | barsuk | 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 | |||
29 | |||
30 | |||
31 | |||
32 | while (strDest[i] != '\0') |
||
33 | i++; |
||
34 | |||
35 | |||
36 | ; |
||
37 | } |
||
38 | |||
39 | |||
40 | |||
41 | { |
||
42 | |||
43 | |||
44 | { |
||
45 | if (*string1<*string2) |
||
46 | return -1; |
||
47 | if (*string1>*string2) |
||
48 | return 1; |
||
49 | |||
50 | |||
51 | return 0; |
||
52 | |||
53 | |||
54 | string2++; |
||
55 | } |
||
56 | |||
57 | |||
58 | |||
59 | |||
60 | |||
61 | { |
||
62 | unsigned i; |
||
63 | |||
64 | |||
65 | while ((strDest[i] = strSource[i]) != '\0') |
||
66 | i++; |
||
67 | |||
68 | |||
69 | |||
70 | |||
71 | |||
72 | { |
||
73 | unsigned i; |
||
74 | |||
75 | |||
76 | return strDest; |
||
77 | |||
78 | |||
79 | while ((strDest[i] = strSource[i]) != '\0') |
||
80 | if ( (n-1) == i ) |
||
81 | break; |
||
82 | else |
||
83 | i++; |
||
84 | |||
85 | |||
86 | } |
||
87 | |||
88 | |||
89 | |||
90 | { |
||
91 | int i; |
||
92 | |||
93 | |||
94 | while (*string++) i++; |
||
95 | return i; |
||
96 | } |
||
97 | |||
98 | |||
99 | |||
100 | |||
101 | { |
||
102 | while (*string) |
||
103 | { |
||
104 | if (*string==c) |
||
105 | return (char*)string; |
||
106 | string++; |
||
107 | } |
||
108 | return (char*)0; |
||
109 | }*string2) |
||
110 | >>> |
||
111 |