Copyright clean-up (part 1):
[AROS.git] / test / clib / stpblk.c
blobbae4a2eab84f16ba3e9817638e076ab39fb84474
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdio.h>
7 #include <string.h>
8 #include "test.h"
10 int main()
12 char *hello = " Hello";
13 char *empty = " ";
15 TEST( strcmp( "Hello", stpblk( hello ) ) == 0 );
16 TEST( strcmp( "", stpblk( empty ) ) == 0 );
17 TEST( strlen( stpblk( hello ) ) == 5 );
18 TEST( strlen( stpblk( empty ) ) == 0 );
20 return OK;
23 void cleanup()
25 /* Nothing to clean up */