>> Jon wrote: >> I suspect that the C group considered >> Null-terminated strings cost exactly the same as fixed length fields. > Robin Vowels wrote > But if you just want the length, a fixed-length string wins.
Length of a fixed length string is calculated by the compiler. I was specifically referring to instructions. I believe C was developed on a RISC machine without string or fixed instructions. My point was that if you loop thru each byte, then string would be faster than fixed length. Regards, Jon.
