Mercurial > ecos-v3_0-branch
comparison packages/language/c/libc/string/current/tests/strstr.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 // FUNCTIONS | 57 // FUNCTIONS |
| 57 | 58 |
| 67 | 68 |
| 68 return s1; | 69 return s1; |
| 69 } // my_strcpy() | 70 } // my_strcpy() |
| 70 | 71 |
| 71 | 72 |
| 73 #if CYGINT_ISO_MAIN_STARTUP | |
| 72 int main( int argc, char *argv[] ) | 74 int main( int argc, char *argv[] ) |
| 75 #else | |
| 76 void cyg_user_start(void) | |
| 77 #endif | |
| 73 { | 78 { |
| 74 char x[300]; | 79 char x[300]; |
| 75 char y[300]; | 80 char y[300]; |
| 76 char *ret; | 81 char *ret; |
| 77 | 82 |
