OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [tst/] [limits.c] - Blame information for rev 170

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 hellwig
#include <limits.h>
2
 
3
main() {
4
        printf("UCHAR_MAX:      %08x=%d\n", UCHAR_MAX, UCHAR_MAX);
5
        printf("USHRT_MAX:      %08x=%d\n", USHRT_MAX, USHRT_MAX);
6
        printf("UINT_MAX:       %08x=%d\n", UINT_MAX, UINT_MAX);
7
        printf("ULONG_MAX:      %08lx=%ld\n", ULONG_MAX, ULONG_MAX);
8
        printf("CHAR_MAX:       %08x=%d\n", CHAR_MAX, CHAR_MAX);
9
        printf("SCHAR_MAX:      %08x=%d\n", SCHAR_MAX, SCHAR_MAX);
10
        printf("SHRT_MAX:       %08x=%d\n", SHRT_MAX, SHRT_MAX);
11
        printf("INT_MAX:        %08x=%d\n", INT_MAX, INT_MAX);
12
        printf("LONG_MAX:       %08lx=%ld\n", LONG_MAX, LONG_MAX);
13
        printf("CHAR_MIN:       %08x=%d\n", CHAR_MIN, CHAR_MIN);
14
        printf("SCHAR_MIN:      %08x=%d\n", SCHAR_MIN, SCHAR_MIN);
15
        printf("SHRT_MIN:       %08x=%d\n", SHRT_MIN, SHRT_MIN);
16
        printf("INT_MIN:        %08x=%d\n", INT_MIN, INT_MIN);
17
        printf("LONG_MIN:       %08lx=%ld\n", LONG_MIN, LONG_MIN);
18
        return 0;
19
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.