Can't you just copy a byte to a buffer checking for null, counting down the length.
At the assembly level you have to copy a byte at a time anyway.
I don't see why you'd want to check the entire length of the input string for strlcpy either. It seems less than optimal.
I'm guessing the people involved know more than me. So...?
Can't you just copy a byte to a buffer checking for null, counting down the length.
At the assembly level you have to copy a byte at a time anyway.
I don't see why you'd want to check the entire length of the input string for strlcpy either. It seems less than optimal.
I'm guessing the people involved know more than me. So...?