-
pekberg committed patchset 6416 of module ggi-core to the General Graphics Interface CVS repository, changing 1 files.
2009-10-10 08:51:12 UTC in General Graphics Interface
-
pekberg committed patchset 6415 of module ggi-core to the General Graphics Interface CVS repository, changing 1 files.
2009-10-09 06:54:52 UTC in General Graphics Interface
-
Yes, looks good. Thanks!
(But to me it seems rather arbitrary to call the Microsoft *scanf functions buggy. After all, their only requirement for %p is to handle whatever the *printf functions spew out. They're silly, but nut buggy IMHO)
Cheers,
Peter.
2009-09-30 12:48:43 UTC in MinGW - Minimalist GNU for Windows
-
Keith Marshall wrote:
> Also note that, to maintain guaranteed consistency of
> implementation, your own application should be pairing
> _snprintf(), and not snprintf(), with Microsoft's sscanf().
And that's just the problem. My application did not
ask for this mismatch, the mismatch is in the defaults.
I have simple autoconf tests that checks if snprintf is
there. It is. (it assumes...
2009-09-23 09:18:26 UTC in MinGW - Minimalist GNU for Windows
-
pekberg committed patchset 6413 of module ggi-core to the General Graphics Interface CVS repository, changing 6 files.
2009-09-21 12:20:19 UTC in General Graphics Interface
-
Oops, forgot to zero fill...
Fixed in printf-pointer-2.patch.
2009-08-26 05:03:31 UTC in MinGW - Minimalist GNU for Windows
-
As I wrote on the mingw-users list, this program produces bad output:
$ cat scan.c
#include
int main(void)
{
void *p;
char buf[100];
snprintf(buf, sizeof(buf), "%p", &p);
printf("%s\n", buf);
sscanf(buf, "%p", &p);
printf("%p\n", p);
return 0;
}
$ gcc -o scan scan.c
$ ./scan
0x22ff6c
00000000
I expect the below output, which...
2009-08-25 20:37:25 UTC in MinGW - Minimalist GNU for Windows
-
pekberg committed patchset 6412 of module ggi-core to the General Graphics Interface CVS repository, changing 1 files.
2009-08-24 12:19:52 UTC in General Graphics Interface
-
pekberg committed patchset 6411 of module ggi-core to the General Graphics Interface CVS repository, changing 1 files.
2009-08-10 09:15:28 UTC in General Graphics Interface
-
pekberg committed patchset 6409 of module ggi-core to the General Graphics Interface CVS repository, changing 1 files.
2009-08-07 05:01:00 UTC in General Graphics Interface