summaryrefslogtreecommitdiff
path: root/tests/libc/test_strlcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libc/test_strlcat.c')
-rw-r--r--tests/libc/test_strlcat.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/libc/test_strlcat.c b/tests/libc/test_strlcat.c
index 074cb98..5a1bfc9 100644
--- a/tests/libc/test_strlcat.c
+++ b/tests/libc/test_strlcat.c
@@ -1,4 +1,5 @@
#include "string.h"
+#include "stdlib.h"
int main( void )
{
@@ -9,11 +10,11 @@ int main( void )
*d = '\0';
n = strlcat( d, s1, 15 );
- if( n != 11 ) return 1;
- if( strcmp( d, s1 ) != 0 ) return 1;
+ if( n != 11 ) exit( 1 );
+ if( strcmp( d, s1 ) != 0 ) exit( 1 );
n = strlcat( d, s2, 15 );
- if( n != 14 ) return 1;
- if( strcmp( d, "test_stringapp" ) != 0 ) return 1;
+ if( n != 14 ) exit( 1 );
+ if( strcmp( d, "test_stringapp" ) != 0 ) exit( 1 );
- return 0;
+ exit( 0 );
}