utilitylibraries/libutils/tsrc/src/test_charptotptr16_positive1.cpp
changeset 44 97b0fb8a2cc2
parent 22 ddc455616bd6
equal deleted inserted replaced
22:ddc455616bd6 44:97b0fb8a2cc2
    26     int retval =ESuccess;
    26     int retval =ESuccess;
    27     char* mycharstring = "Hello Char String";
    27     char* mycharstring = "Hello Char String";
    28     TBufC16<30> buf;
    28     TBufC16<30> buf;
    29     TPtr16 myTptr = buf.Des();
    29     TPtr16 myTptr = buf.Des();
    30     wchar_t* temp = new wchar_t[30];
    30     wchar_t* temp = new wchar_t[30];
    31     retval = CharpToTptr16(mycharstring,temp,myTptr);
    31     retval = CharpToTptr16(mycharstring, myTptr);
    32 
    32 
    33     if (retval ==ESuccess)
    33     if (retval ==ESuccess)
    34     {
    34     {
    35     printf("CharpToTptr16 positive Passed\n");
    35     printf("CharpToTptr16 positive Passed\n");
    36     }
    36     }