view test/cext.c @ 515:3d921f7a8e74

*** empty log message ***
author kono
date Mon, 26 Dec 2005 09:18:36 +0900
parents a379da780856
children 2a4a40168fa4
line wrap: on
line source

int printf(const char *format, ...);

unsigned int u;

main()
{
    int i,k; unsigned uk;

    for(i=-3;i<4;i++) {  
        k = (char) i; 
        uk = (unsigned char) i; 
        printf("#0011:%d %u\n",k,uk);
        k = (short) i; 
        uk = (unsigned short) i; 
        printf("#0014:%d %u\n",k,uk);
    }
    u = (unsigned) -23432;

    printf("#0018:%d\n",u/(8048+5));
    return 0;
}