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 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 8 | int main ( void ) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 9 | { |
| 10 | rl_insert(1, 'z'); |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 11 | |
| 12 | return 0; |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | int zzzstrlen ( char* str ) |
| 16 | { |
| 17 | if (str[1] == 0) return 2; else return 10; |
| 18 | } |
| 19 | |
| 20 | int rl_insert ( int count, int c ) |
| 21 | { |
| 22 | char str[2]; |
| 23 | str[1] = 0; |
| 24 | str[0] = c; |
| 25 | printf("HERE strlen is %d\n", zzzstrlen(str)); |
| 26 | return 0; |
| 27 | } |