> -----Original Message-----
> From: Rickard Strandqvist [mailto:[email protected]]
> How do you mean?
>
> strncpy zeroes throughout the remainder of the string "from" until the
> length off to_length, or otherwise guaranteed trailing zero characters
> and a warning is printed.
>
> Is not it exactly the functionality that is desired?
Ah, I see that in man 3 strcpy:
"If the length of src is less than n, strncpy() pads the
remainder of dest with null bytes."
I agree that should work.
---
Rob Elliott HP Server Storage