[Info-vax] Whither VMS?
ChrisQ
meru at devnull.com
Fri Oct 2 07:25:03 EDT 2009
glen herrmannsfeldt wrote:
> ChrisQ <meru at devnull.com> wrote:
> (big snip)
>
> < But we are a bit out of date here - The later C lib functions like
> < strncpy() did have a length parameter and stuff like this has been
> < around in the C lib for 15+ years.
>
> Have you looked at strncpy()?
>
> It pads the destianation with null characters out to the
> specified length. For large n that can be even slower than using
> strcat() in a loop.
>
> -- glen
Gone are they days when you went to make some coffee, or took half the
day off while task builder did it's thing. Modern machines are so fast
that stuff like that is irrelevant for all intents and purposes. i/o
bandwidth and latency are more likely to be the culprit.
The second thing is, what length string are you copying ?, If it's
megabytes, then you could argue program design needs to be addressed...
Regards,
Chris
More information about the Info-vax
mailing list