From: SourceForge.net <no...@so...> - 2007-05-18 23:05:48
|
Bugs item #1721533, was opened at 2007-05-18 16:35 Message generated for change (Settings changed) made by earnie You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1721533&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: binutils Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: yayooo (yayooo) >Assigned to: Nobody/Anonymous (nobody) Summary: mingw scanf hh 32bit Initial Comment: #include <stdio.h> int main() {unsigned int i; char out[]="ABCDEFGHIJK"; for(i=0;i<sizeof(out);i++) printf("%02X:%c ",out[i],out[i]); putchar('\n'); sscanf("97","%hhd",out+5); for(i=0;i<sizeof(out);i++) printf("%02X:%c ",out[i],out[i]); putchar('\n'); return(0); } /* http://www.gnu.org/software/libc/manual/html_node/Numeric-Input-Conversions.html `hh' Specifies that the argument is a signed char * or unsigned char *. */ /* Window Server 2003 Enterprise Edition Microsoft Windows [version 5.2.3790] devcpp-4.9.9.2_setup.exe MinGW gcc -v Reading specs from D:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host= mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable -languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --e nable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-ja va-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchroniz ation --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.2 (mingw-special) ld -v GNU ld version 2.15.91 20040904 Result: 41:A 42:B 43:C 44:D 45:E 46:F 47:G 48:H 49:I 4A:J 4B:K 00: 41:A 42:B 43:C 44:D 45:E 61:a 00: 00: 00: 4A:J 4B:K 00: */ /* # uname -ap OpenBSD 4.1 GENERIC.MP#1225 i386 Intel(R) Pentium(R) 4 CPU 3.00GHz ("GenuineIntel" 686-class) # gcc -v Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd4.1/3.3.5/specs Configured with: Thread model: single gcc version 3.3.5 (propolice) # ld -v GNU ld version 2.15 Result: 41:A 42:B 43:C 44:D 45:E 46:F 47:G 48:H 49:I 4A:J 4B:K 00: 41:A 42:B 43:C 44:D 45:E 61:a 47:G 48:H 49:I 4A:J 4B:K 00: */ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1721533&group_id=2435 |