strcpy_s, strlcpy, and strncpy and checking for overflow

Ulrich Drepper drepper@redhat.com
Sun May 6 17:22:00 GMT 2007


Yuhong Bao wrote:
> Regardless it is not part of a standard yet, so it may not be a good 
> idea to add it to glibc.

No, it's not.  If you're concerned about overflows use the functions 
which do all this by themselves.  Read

   http://people.redhat.com/drepper/defprogramming.pdf

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖



More information about the Libc-alpha mailing list