| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | strwildcmp :) |
Quoting Frank Adam to Adam Fitzpatrick: FA>it actually returns the ascii code of the character it fails on in FA>str1, and negates it if *str2 > *str1. AF>That's quite interesting; presumably the asm source involves lodsb and AF>cmp al,[es:di] or some such. Therefore the character from str1 is AF>already in AL, so it doesn't require any instructions to produce the FA>Yes, i have made an strcmp to return the char or negated char. FA>I'm yet to find a use for it though :) I know that feeling; I spent weeks getting my text editor to work with lines up to 64k. :) AF>return code. However, this wouldn't work with a character over the AF>value of 127, because that would be interpreted as a negative number. FA>Well, it does an unsigned comparison, so i presume that's correct. I'm not sure what you mean here. I was referring to the return value of strcmp. I've just checked and found out it's an int, so there's no problem (because int is bigger than char, so an unsigned char will always end up as a positive int). ... Avoid the 64k limit: get a Spectrum 16k! --- 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™.