equal
deleted
inserted
replaced
17 #include <stdio.h> |
17 #include <stdio.h> |
18 #include<e32std.h> |
18 #include<e32std.h> |
19 #include "libutils.h" |
19 #include "libutils.h" |
20 #include"std_log_result.h" |
20 #include"std_log_result.h" |
21 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
21 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
22 void main() |
22 int main() |
23 { |
23 { |
24 int retval =ESuccess; |
24 int retval =ESuccess; |
25 __UHEAP_MARK; |
25 __UHEAP_MARK; |
26 { |
26 { |
27 string s; |
27 string s; |
28 TPtr8 buf((unsigned char *)"", 10); |
28 TPtr8 buf((unsigned char *)"", 10); |
29 buf.Set((unsigned char *)"Hello", 5, 10); |
29 buf.Set((unsigned char *)"Hello", 5, 10); |
30 // int i=0; |
30 // int i=0; |
31 // while (i<=1000) |
31 // while (i<=1000) |
32 // { |
32 // { |
33 retval = Tptr8ToString(buf, s); |
33 retval = Tptr8ToString(buf, s); |
|
34 if(retval == ESuccess) |
|
35 printf("conversion succeeded\n"); |
34 // i++; |
36 // i++; |
35 // printf("%d\n",i); |
37 // printf("%d\n",i); |
36 // } |
38 // } |
37 |
39 |
38 if (!strcmp(s.c_str(), "Hello")) |
40 if (!strcmp(s.c_str(), "Hello")) |
45 printf("tbuf8tostring Failed"); |
47 printf("tbuf8tostring Failed"); |
46 } |
48 } |
47 } |
49 } |
48 __UHEAP_MARKEND; |
50 __UHEAP_MARKEND; |
49 testResultXml("test_tptr8tostring_positive"); |
51 testResultXml("test_tptr8tostring_positive"); |
|
52 |
|
53 return 0; |
50 } |
54 } |