]> diplodocus.org Git - nmh/blobdiff - uip/whatnow.c
Simplified m_strn() per Ralph's suggestions.
[nmh] / uip / whatnow.c
index be50bc92d603e60fbac1ab56c07d981e0ecdc32e..86a17f9329a9aad9755410022c40716f9931dcfa 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * whatnow.c -- the nmh `WhatNow' shell
+/* whatnow.c -- the nmh `WhatNow' shell
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -8,13 +6,13 @@
  */
 
 #include <h/mh.h>
+#include <h/utils.h>
 
 
 int
 main (int argc, char **argv)
 {
-#ifdef LOCALE
-    setlocale(LC_ALL, "");
-#endif
+    if (nmh_init(argv[0], 2)) { return 1; }
+
     return WhatNow (argc, argv);
 }