In message: <[EMAIL PROTECTED]> "Thordur Ivar B." <[EMAIL PROTECTED]> writes: : While porting software from a friend wich was developed under Linux, I stumbled : upon an error: src/socket.c:236: warning: implicit declaration of function : `strnlen' : : Now my programming experience is nothing to brag about but I wonder why strnlen : is not a part of FreeBSD's libc. I think that the use of strlen() insted of : strnlen() could resault in buffer-overflow risks and my fellows (most of them : are more experienced in the art of programming say that bounds checking is : always good.) : : I have not found anything on google about this subject and if there is something : that i overlooked then I'm real sorry for spamming this list.
strnlen() isn't a standardized function. It is a linuxism. Generally FreeBSD only includes functions in libc that are part of Posix (or traditionally been in BSD) to prevent namespace pollution. Warner _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"