00001
00002
00003
00004
00005 #include <j2k/Fred/Basic.hpp>
00006 #include <j2k/Fred/Util/Util.hpp>
00007
00008 #define SIZEOF(array) (sizeof(array)/sizeof(*array))
00009
00010 int main()
00011 {
00012 printf( "test utils \n" );
00013
00014 char str[] = REPEAT(1024, " ");
00015 assert (strlen (str) == 1024);
00016 assert (SIZEOF (str) == 1025);
00017
00018 int ones[] = { REPEAT_WC (1024, 1) };
00019 assert (SIZEOF (ones) == 1024);
00020
00021 printf( "[%c][%d] \n", str[1023], ones[1023] );
00022 printf( "Click on me!" );
00023 fflush( stdout );
00024
00025 char c;
00026 cin >> c;
00027
00028 return 0;
00029 }
00030
00031