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 int main() |
22 void main() |
23 { |
23 { |
24 __UHEAP_MARK; |
24 __UHEAP_MARK; |
25 { |
25 { |
26 string s; |
26 string s; |
27 int retval =ESuccess; |
27 int retval =ESuccess; |
29 buf.Set((unsigned char *)"Hello", 5); |
29 buf.Set((unsigned char *)"Hello", 5); |
30 // int i=0; |
30 // int i=0; |
31 // while (i<=1000) |
31 // while (i<=1000) |
32 // { |
32 // { |
33 retval = Tptrc8ToString(buf, s); |
33 retval = Tptrc8ToString(buf, s); |
34 if(retval==ESuccess) |
|
35 { |
|
36 printf("Conversion successful\n"); |
|
37 } |
|
38 // i++; |
34 // i++; |
39 // printf("%d\n",i); |
35 // printf("%d\n",i); |
40 // } |
36 // } |
41 |
37 |
42 if (!strcmp(s.c_str(), "Hello")) |
38 if (!strcmp(s.c_str(), "Hello")) |
49 printf("tbuf8tostring Failed"); |
45 printf("tbuf8tostring Failed"); |
50 } |
46 } |
51 } |
47 } |
52 __UHEAP_MARKEND; |
48 __UHEAP_MARKEND; |
53 testResultXml("test_tptrc8tostring_positive"); |
49 testResultXml("test_tptrc8tostring_positive"); |
54 |
|
55 return 0; |
|
56 } |
50 } |