Lines Matching refs:buf
197 char buf[64]; in TEST() local
201 EXPECT_EQ(10U, strftime(buf, sizeof(buf), "%s", &t)); in TEST()
202 EXPECT_STREQ("4108320000", buf); in TEST()
206 EXPECT_EQ(24U, strftime(buf, sizeof(buf), "%c", &t)); in TEST()
207 EXPECT_STREQ("Sun Mar 10 00:00:00 2100", buf); in TEST()
215 char buf[64]; in TEST() local
221 EXPECT_EQ(5U, strftime(buf, sizeof(buf), "<%Z>", &t)); in TEST()
222 EXPECT_STREQ("<PST>", buf); in TEST()
226 EXPECT_EQ(5U, strftime(buf, sizeof(buf), "<%Z>", &t)); in TEST()
227 EXPECT_STREQ("<PDT>", buf); in TEST()
230 EXPECT_EQ(2U, strftime(buf, sizeof(buf), "<%Z>", &t)); in TEST()
231 EXPECT_STREQ("<>", buf); in TEST()
238 EXPECT_EQ(5U, strftime(buf, sizeof(buf), "<%Z>", &t)); in TEST()
239 EXPECT_STREQ("<UTC>", buf); in TEST()
243 EXPECT_EQ(2U, strftime(buf, sizeof(buf), "<%Z>", &t)); in TEST()
244 EXPECT_STREQ("<>", buf); in TEST()
261 char buf[64]; in TEST() local
262 EXPECT_EQ(24U, strftime_l(buf, sizeof(buf), "%c", &t, cloc)); in TEST()
263 EXPECT_STREQ("Sun Mar 10 00:00:00 2100", buf); in TEST()
273 char buf[64]; in TEST() local
277 strftime(buf, sizeof(buf), "%H:%M", &t); in TEST()
278 EXPECT_STREQ("11:14", buf); in TEST()
282 strftime(buf, sizeof(buf), "%H:%M:%S", &t); in TEST()
283 EXPECT_STREQ("09:41:53", buf); in TEST()
290 char buf[64]; in TEST() local
294 strftime_l(buf, sizeof(buf), "%H:%M", &t, LC_GLOBAL_LOCALE); in TEST()
295 EXPECT_STREQ("11:14", buf); in TEST()
299 strftime_l(buf, sizeof(buf), "%H:%M:%S", &t, LC_GLOBAL_LOCALE); in TEST()
300 EXPECT_STREQ("09:41:53", buf); in TEST()
929 char buf[256]; in TEST() local
930 ASSERT_EQ(buf, asctime_r(&tm, buf)); in TEST()
931 ASSERT_STREQ("Sun Jan 0 00:00:00 1900\n", buf); in TEST()
943 char buf[256]; in TEST() local
944 ASSERT_EQ(buf, ctime_r(&t, buf)); in TEST()
945 ASSERT_STREQ("Thu Jan 1 00:00:00 1970\n", buf); in TEST()
950 char buf[32]; in TEST() local
954 strftime(buf, sizeof(buf), "<%s>", &tm0); in TEST()
955 EXPECT_STREQ("<378720000>", buf); in TEST()
958 strftime(buf, sizeof(buf), "<%s>", &tm0); in TEST()
959 EXPECT_STREQ("<378691200>", buf); in TEST()