This is the mail archive of the
mailing list for the Cygwin project.
On 6/15/2011 2:04 PM, Tod wrote:
On 06/15/2011 1:48 PM, Christopher Faylor wrote:
On Wed, Jun 15, 2011 at 01:45:03PM -0400, Tod wrote:
On 06/15/2011 1:38 PM, Christopher Faylor wrote:
On Wed, Jun 15, 2011 at 01:23:05PM -0400, Tod wrote:
On 06/15/2011 11:26 AM, Tod wrote:
Has anything change in regards to the C localtime function since 2007?
I've got a program with a function that uses it to present the date and
time that I just changed. The time isn't appearing only the date.
strlen is based on the current contents of the array ... it stops
at the first null. So it's certainly possible that you will truncate
output. sizeof would indeed be more appropriate, since you care
about how much space you have available, not where the next null
byte is in memory ...
Best -- Eliot Moss
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple