sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 1 | |
2 | #include <stdio.h> | ||||
3 | #include <unistd.h> | ||||
4 | #include <string.h> | ||||
5 | |||||
6 | int rl_insert ( int, int ); | ||||
7 | |||||
8 | void main ( void ) | ||||
9 | { | ||||
10 | rl_insert(1, 'z'); | ||||
11 | } | ||||
12 | |||||
13 | int zzzstrlen ( char* str ) | ||||
14 | { | ||||
15 | if (str[1] == 0) return 2; else return 10; | ||||
16 | } | ||||
17 | |||||
18 | int rl_insert ( int count, int c ) | ||||
19 | { | ||||
20 | char str[2]; | ||||
21 | str[1] = 0; | ||||
22 | str[0] = c; | ||||
23 | printf("HERE strlen is %d\n", zzzstrlen(str)); | ||||
24 | return 0; | ||||
25 | } |