[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[WitchTech 00296] signed char
- Subject: [WitchTech 00296] signed char
- From: Shigeki Yamamoto <shige@tsi.co.jp>
- Date: Mon, 14 Aug 2000 11:31:50 +0900
$B$"$s$_$D(B $B$G$9(B
$B<ALd$G$9!#(B
$B$?$H$($P0J2<$N$h$&$J%3!<%I$r<B9T$9$k$H(B
---
enum {
aaa = -1
} ;
char a , buf[BUFSIZ] ;
a = aaa ;
sprintf( buf , "%d" , a ) ; /* ... (1) */
text_put_string( 0 , 0 , buf ) ;
if ( a != aaa ) { /* ... (2) */
text_put_string( 0 , 0 , "NG" ) ;
} else {
text_put_string( 0 , 0 , "OK" ) ;
}
---
$B$^$:!"(B(1)$B$N(Bsprintf()$B$N=PNO$,(B "-1" $B$G$O$J$/(B "255" $B$K$J$j$^$9!#(B
$B$=$l$+$i!"(B(2)$B$NHf3S1i;;$N7k2L$,(B $B??(B $B$K$J$C$F$7$^$$$^$9!#(B
$B$J$<$J$s$G$7$g$&$+!#!#!#(B
$B$A$J$_$K(BLSI-C$B$N$[$&$G$9!#(B
ML Archives