| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | 32-bit bink hack |
PC> What's the bug in EMX? I might run across it and not even notice it,
PC> thinking its in *my* code. :-)
/* According to my interpretation of ISO/IEC 9899:1990, this
program should print "2". It prints "-1" instead, under
EMX 0.9a. */
#include
int main(void)
{
char buf[50] = "5 6";
int x, y;
int ret;
ret = sscanf(buf, "%d %d p", &x, &y);
printf("ret is %d\n", ret);
return (0);
}
Paul
@EOT:
---
* Origin: This is just another kludge line like SEENBY (3:711/934.9) |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.