タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

カレンダーとCに関するiwwのブックマーク (1)

  • Man page of STRFTIME

    Section: Linux Programmer's Manual (3) Updated: 2020-08-13 Index JM Home Page roff page 名前 strftime - 日付および時刻の文字列への変換 書式 #include <time.h> size_t strftime(char *s, size_t max, const char *format, const struct tm *tm); 説明 strftime() 関数 は、要素別の時刻 tm の内容を format で指定された書式指定にしたがって変換し、長さ max の文字列 s に書き込む。要素別の時刻構造体 tm は <time.h> で定義されている。 ctime(3) も参照。 書式指定はヌル終端された文字列であり、「変換指定 (conversion specification)」と

    iww
    iww 2018/02/09
    文字列は必ず終端される。 Cの文字列関係の関数は「文字列が必ず終端されるかそうでもないか」をもっとはっきりわかりやすく明確に目立つところに書くべき。
  • 1