summaryrefslogtreecommitdiff
path: root/tests/libc/test_strlcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libc/test_strlcpy.c')
-rw-r--r--tests/libc/test_strlcpy.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/libc/test_strlcpy.c b/tests/libc/test_strlcpy.c
index a23a5bc..ac7acf9 100644
--- a/tests/libc/test_strlcpy.c
+++ b/tests/libc/test_strlcpy.c
@@ -1,4 +1,5 @@
#include "string.h"
+#include "stdlib.h"
int main( void )
{
@@ -8,8 +9,8 @@ int main( void )
// copy into too small string
n = strlcpy( d, s, 4 );
- if( n != 11 ) return 1;
- if( strcmp( d, "tes" ) ) return 1;
+ if( n != 11 ) exit( 1 );
+ if( strcmp( d, "tes" ) ) exit( 1 );
- return 0;
+ exit( 0 );
}