mirror of
https://github.com/ioacademy-jikim/debugging
synced 2025-06-08 08:26:14 +00:00
28 lines
377 B
C
28 lines
377 B
C
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
|
|
int rl_insert ( int, int );
|
|
|
|
int main ( void )
|
|
{
|
|
rl_insert(1, 'z');
|
|
|
|
return 0;
|
|
}
|
|
|
|
int zzzstrlen ( char* str )
|
|
{
|
|
if (str[1] == 0) return 2; else return 10;
|
|
}
|
|
|
|
int rl_insert ( int count, int c )
|
|
{
|
|
char str[2];
|
|
str[1] = 0;
|
|
str[0] = c;
|
|
printf("HERE strlen is %d\n", zzzstrlen(str));
|
|
return 0;
|
|
}
|