utilitylibraries/libutils/tsrc/src/test_charptotptrc16_negative2.cpp
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
equal deleted inserted replaced
56:acd3cd4aaceb 57:2efc27d87e1c
    18 #include <stdio.h>
    18 #include <stdio.h>
    19 #include<e32std.h>
    19 #include<e32std.h>
    20 #include "libutils.h"
    20 #include "libutils.h"
    21 #include"std_log_result.h"
    21 #include"std_log_result.h"
    22 #define LOG_FILENAME_LINE __FILE__, __LINE__
    22 #define LOG_FILENAME_LINE __FILE__, __LINE__
    23 int main()
    23 void main()
    24 {
    24 {
    25     __UHEAP_MARK;
    25     __UHEAP_MARK;
    26     int retval =ESuccess;
    26     int retval =ESuccess;
    27     char* mycharstring = NULL; 
    27     char* mycharstring = NULL; 
    28     TPtrC myTptrc;
    28     TPtrC myTptrc;
    29     wchar_t* myptr= new wchar_t[10];
    29     wchar_t* myptr= new wchar_t[10];
    30     retval = CharpToTptrc16(mycharstring, myptr, myTptrc);
    30     retval = CharpToTptrc16(mycharstring,myptr, myTptrc);
    31 
    31 
    32     if (retval == EInvalidPointer)
    32     if (retval == EInvalidPointer)
    33     {
    33     {
    34     printf("charptotptrc16 negative2 Passed\n");
    34     printf("charptotptrc16 negative2 Passed\n");
    35     }
    35     }
    39     printf("charptotptrc16 negative2 Failed\n");
    39     printf("charptotptrc16 negative2 Failed\n");
    40     }      
    40     }      
    41     free(myptr);
    41     free(myptr);
    42     __UHEAP_MARKEND;
    42     __UHEAP_MARKEND;
    43     testResultXml("test_charptotptrc16_negative2");
    43     testResultXml("test_charptotptrc16_negative2");
    44 	return 0;
       
    45 }
    44 }