Rev 1665 | Rev 3245 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1665 | Nasarus | 1 | |
2 | |||
3 | int i, n; |
||
4 | |||
5 | n = 0; |
||
6 | |||
7 | if ((s[i]<'0') || (s[i]>'9')) |
||
8 | return 0; |
||
9 | else |
||
10 | n = 10 * n + s[i] - '0'; |
||
11 | |||
12 | return n; |
||
13 | |||
14 | |||
15 | |||
16 | |||
17 | |||
18 | |||
19 | |||
20 | unsigned proc; |
||
21 | |||
22 | |||
23 | if (NULL == process) |
||
24 | |||
25 | printf(" kill |
||
26 | return FALSE; |
||
1668 | Nasarus | 27 | } |
1665 | Nasarus | 28 | else |
29 | { |
||
30 | proc = _atoi(process); |
||
31 | if ( 0 != proc ) |
||
32 | { |
||
33 | result = kol_process_kill_pid(proc); |
||
34 | if (result < 0) |
||
35 | return FALSE; |
||
36 | else |
||
37 | return TRUE; |
||
38 | } |
||
39 | } |
||
40 | |||
41 | }>'0')> |
||
42 |