Changeset 463 for trunk/testcase/Optlink-1.c
- Timestamp:
- Jul 28, 2003, 11:35:55 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testcase/Optlink-1.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r462 r463 2 2 #include <stdarg.h> 3 3 #include <string.h> 4 5 extern int _Optlink asmsprintf(char *, const char*,...); 4 6 5 7 long _Optlink OptSimple(int arg1, int arg2, int arg3, int arg4, int arg5) … … 54 56 int main(int argc, const char * const *argv) 55 57 { 56 int rc = 0; 58 int rc = 0; 59 char szBuffer[128]; 57 60 58 61 if (OptSimple(0x11000011, 0x22000022, 0x33000033, 0x44000044, 0x55000055)) … … 68 71 } 69 72 73 asmsprintf(szBuffer, "%s%c%s%s", "hello", ' ', "world", "\n"); 74 if (strcmp(szBuffer, "hello world\n")) 75 { 76 printf("error: OptPrintf failed\n"); 77 rc++; 78 } 79 80 70 81 if (!rc) 71 82 printf("All Testcases Successfully Executed\n"); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.