drd/tests/swapcontext: Improve the portability of this test further
[valgrind.git] / none / tests / readline1.c
blob63c4b89409e91e5ab1b148e1ba61fe16a3fe8822
2 #include <stdio.h>
3 #include <unistd.h>
4 #include <string.h>
6 int rl_insert ( int, int );
8 int main ( void )
10 rl_insert(1, 'z');
12 return 0;
15 int zzzstrlen ( char* str )
17 if (str[1] == 0) return 2; else return 10;
20 int rl_insert ( int count, int c )
22 char str[2];
23 str[1] = 0;
24 str[0] = c;
25 printf("HERE strlen is %d\n", zzzstrlen(str));
26 return 0;