Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I confirmed ONE problem - not sure how to fix it though.




On Apr 6, 2006, at 1:45 AM, John Draper wrote:

So - if I'm maxing it out to 100 bytes, I would use 101 for the length?

For strlcpy?

If you have a string buffer that has 101 allocated bytes, you call strlcpy with a length of 101. Your string can have a maximum length of 100 characters. The last byte is used for the null character.

Check out man strlcpy for more info.

-Prachi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >I confirmed ONE problem - not sure how to fix it though. (From: John Draper <email@hidden>)
 >Re: I confirmed ONE problem - not sure how to fix it though. (From: "Sean McBride" <email@hidden>)
 >Re: I confirmed ONE problem - not sure how to fix it though. (From: Prachi Gauriar <email@hidden>)
 >Re: I confirmed ONE problem - not sure how to fix it though. (From: John Draper <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.