Mercurial > ecos-v3_0-branch
comparison packages/language/c/libc/string/current/tests/memset.c @ 2725:fa083e5b947e
Make the string tests work in configurations which do not involve
main().
| author | bartv |
|---|---|
| date | Wed, 28 Jan 2009 15:28:56 +0000 |
| parents | d2c90368aeef |
| children | 74dbf4c3f2e1 |
comparison
equal
deleted
inserted
replaced
| 2724:9ab1839abc2c | 2725:fa083e5b947e |
|---|---|
| 48 // | 48 // |
| 49 //####DESCRIPTIONEND#### | 49 //####DESCRIPTIONEND#### |
| 50 | 50 |
| 51 // INCLUDES | 51 // INCLUDES |
| 52 | 52 |
| 53 #include <pkgconf/isoinfra.h> | |
| 53 #include <string.h> | 54 #include <string.h> |
| 54 #include <cyg/infra/testcase.h> | 55 #include <cyg/infra/testcase.h> |
| 55 | 56 |
| 56 | 57 |
| 57 // FUNCTIONS | 58 // FUNCTIONS |
| 79 | 80 |
| 80 return s1; | 81 return s1; |
| 81 } // my_strcpy() | 82 } // my_strcpy() |
| 82 | 83 |
| 83 | 84 |
| 85 #if CYGINT_ISO_MAIN_STARTUP | |
| 84 int main( int argc, char *argv[] ) | 86 int main( int argc, char *argv[] ) |
| 87 #else | |
| 88 void cyg_user_start(void) | |
| 89 #endif | |
| 85 { | 90 { |
| 86 char x[300]; | 91 char x[300]; |
| 87 char *ret; | 92 char *ret; |
| 88 | 93 |
| 89 CYG_TEST_INIT(); | 94 CYG_TEST_INIT(); |
