| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | strwildcmp :) |
Quoting Frank Adam to Paul Edwards: [snip] FA>Talking about strcmp() i have noticed something that nobody mentioned, FA>it actually returns the ascii code of the character it fails on in FA>str1, and negates it if *str2 > *str1. That's quite interesting; presumably the asm source involves lodsb and cmp al,[es:di] or some such. Therefore the character from str1 is already in AL, so it doesn't require any instructions to produce the return code. However, this wouldn't work with a character over the value of 127, because that would be interpreted as a negative number. Have you tried it with str1 containing such a character? (Or does the strcmp() function assume 0 to 127 characters?) ... Do Agnostics open their prayers with "To Whom it May Concern"? --- FMailX 1.02* Origin: Power BBS - +61-2-858-4114 - Files/Games/EchoMail/Internet (3:711/953) SEEN-BY: 50/99 620/243 623/630 711/401 409 410 413 430 808 809 932 934 946 SEEN-BY: 711/953 963 712/515 713/888 714/906 800/1 @PATH: 711/953 410 808 934 |
|
| 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™.