История изменений
Исправление invy, (текущая версия) :
И еще
Note that the return value 0 does not necessarily indicate an error. For example, in many locales %p yields an empty string. An empty format string will likewise yield an empty string.
If the output string would exceed max bytes, errno is not set. This makes it impossible to distinguish this error case from cases where the format string legitimately produces a zero-length output string. POSIX.1-2001 does not specify any errno settings for strftime().
Так что пернписывай на плюсах с put_time и не морочь голову :)
Исправление invy, :
И еще
Note that the return value 0 does not necessarily indicate an error. For example, in many locales %p yields an empty string. An empty format string will likewise yield an empty string.
Так что пернписывай на плюсах с put_time и не морочь голову :)
Исходная версия invy, :
И еще
Note that the return value 0 does not necessarily indicate an error. For example, in many locales %p yields an empty string. An empty format string will likewise yield an empty string.