utilitylibraries/libutils/tsrc/src/test_charptotptr16_positive2.cpp
changeset 71 28ccaba883f4
parent 22 ddc455616bd6
equal deleted inserted replaced
67:a1e347446159 71:28ccaba883f4
    26     int retval =ESuccess;
    26     int retval =ESuccess;
    27     char* mycharstring = "";
    27     char* mycharstring = "";
    28     TBufC16<1> buf;
    28     TBufC16<1> 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     }