Hi Steffen, > Therefore i think a function like the Linux strscpy()
That was a new one to me. I found it, https://manned.org/strscpy.9 It's defined in the Linux kernel. ssize_t strscpy(char * dest, const char * src, size_t count); Does nothing if count is zero. Otherwise, it's dest's size. Copies src to dest, as much as fits, truncating, and ensuring it's NUL terminated. Returns -E2BIG if truncation occurs. -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy _______________________________________________ Nmh-workers mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/nmh-workers
