utilitylibraries/libutils/tsrc/src/integration_test_scenario12.cpp
branchGCC_SURGE
changeset 45 4b03adbd26ca
parent 22 ddc455616bd6
parent 34 5fae379060a7
equal deleted inserted replaced
42:a16d1cd191f6 45:4b03adbd26ca
    32     int size1=20;
    32     int size1=20;
    33     retval2=Rbuf8ToChar(src1,des1,size1);		
    33     retval2=Rbuf8ToChar(src1,des1,size1);		
    34 
    34 
    35     char *src2=des1;
    35     char *src2=des1;
    36     RBuf16 des2;
    36     RBuf16 des2;
       
    37     des2.CreateL(30);
    37     retval2=CharToRbuf16(src2,des2);
    38     retval2=CharToRbuf16(src2,des2);
    38     printf("retval2 value is %d\n", retval2);
    39     printf("retval2 value is %d\n", retval2);
    39 
    40 
    40     RBuf16 src3;
    41     RBuf16 src3;
    41     src3.Create(des2);
    42     src3.Create(des2);
    53     retval5= Tbuf8ToChar(src5,des5,size1);
    54     retval5= Tbuf8ToChar(src5,des5,size1);
    54     printf("retval5 value is %d\n", retval5);
    55     printf("retval5 value is %d\n", retval5);
    55     
    56     
    56     char* src6=des5;
    57     char* src6=des5;
    57     RBuf8 des6;
    58     RBuf8 des6;
       
    59     des6.CreateL(30);
    58     retval6= CharToRbuf8(src6,des6);
    60     retval6= CharToRbuf8(src6,des6);
    59     printf("retval6 value is %d\n", retval6);
    61     printf("retval6 value is %d\n", retval6);
    60     
    62     
    61     ret= strncmp((const char*)src1.Ptr(),(const char*)des6.Ptr(),10);
    63     ret= strncmp((const char*)src1.Ptr(),(const char*)des6.Ptr(),10);
    62     if(ret == ESuccess)
    64     if(ret == ESuccess)