User: Password:
|
|
Subscribe / Log in / New account

The ups and downs of strlcpy()

The ups and downs of strlcpy()

Posted Jul 20, 2012 22:18 UTC (Fri) by gch (guest, #63880)
In reply to: The ups and downs of strlcpy() by renox
Parent article: The ups and downs of strlcpy()

It seems it so common to call strlen then another str* function that a new optimization pass was added to gcc 4.7 to keep track of strings length and thus avoid redundant passes on strings.

See gcc 4.7 release notes:
http://gcc.gnu.org/gcc-4.7/changes.html


(Log in to post comments)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds