summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-05-27 22:40:48 -0400
committerArnold D. Robbins <arnold@skeeve.com>2015-05-27 22:40:48 -0400
commita188a60ef38c39c7ddda96fdd88c5abb4feebe2b (patch)
tree6805229d637db2a450873c3e0de03cc7ec72a2c8
parente07a65e10d9a9eb04ef97b2fb2f885c5595d8fac (diff)
downloadgawk-a188a60ef38c39c7ddda96fdd88c5abb4feebe2b.tar.gz
Add two new helper programs.
-rw-r--r--helpers/ChangeLog4
-rw-r--r--helpers/mb_cur_max.c10
-rw-r--r--helpers/timeformat.c13
3 files changed, 27 insertions, 0 deletions
diff --git a/helpers/ChangeLog b/helpers/ChangeLog
index e0d394b1..4188c17d 100644
--- a/helpers/ChangeLog
+++ b/helpers/ChangeLog
@@ -1,3 +1,7 @@
+2015-05-27 Arnold D. Robbins <arnold@skeeve.com>
+
+ * mb_cur_max.c, timeformat.c: New files.
+
2015-05-19 Arnold D. Robbins <arnold@skeeve.com>
* 4.1.3: Release tar ball made.
diff --git a/helpers/mb_cur_max.c b/helpers/mb_cur_max.c
new file mode 100644
index 00000000..c36d7ef7
--- /dev/null
+++ b/helpers/mb_cur_max.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include <locale.h>
+#include <stdlib.h>
+
+int main()
+{
+ setlocale(LC_ALL, "");
+ printf("MB_CUR_MAX = %lu\n", MB_CUR_MAX);
+ return 0;
+}
diff --git a/helpers/timeformat.c b/helpers/timeformat.c
new file mode 100644
index 00000000..c3d1b933
--- /dev/null
+++ b/helpers/timeformat.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+#include <locale.h>
+#include <langinfo.h>
+
+int main(int argc, char **argv)
+{
+ setlocale(LC_ALL, "");
+ printf("D_T_FMT: %s\n", nl_langinfo(D_T_FMT));
+#ifdef _DATE_FMT
+ printf("_DATE_FMT: %s\n", nl_langinfo(_DATE_FMT));
+#endif /* _DATE_FMT */
+ return 0;
+}