New message added to messages.c: full_version
[oweals/busybox.git] / printf.c
index bfe40817540c8a0979f6a85fbc682a61b4213132..6a87fc319902afbddfaf16118c6a6235e77bb076 100644 (file)
--- a/printf.c
+++ b/printf.c
 #include <unistd.h>
 #include <stdio.h>
 #include <sys/types.h>
-#include <getopt.h>
 #include <sys/stat.h>
 #include <string.h>
 #include <errno.h>
 #include <stdlib.h>
 #include <fcntl.h>
 #include <ctype.h>
-#include <libintl.h>
 
 
 #ifndef S_IFMT
@@ -139,8 +137,6 @@ static void verify __P((char *s, char *end));
 /* The value to return to the calling program.  */
 static int exit_status;
 
-static const char printf_usage[] = "printf format [argument...]\n\nFormats and prints the given data.\n";
-
 int printf_main(int argc, char **argv)
 {
        char *format;
@@ -167,7 +163,7 @@ int printf_main(int argc, char **argv)
     fprintf(stderr, "excess args ignored");
 */
 
-       exit(exit_status);
+       return(exit_status);
 }
 
 /* Print the text in FORMAT, using ARGV (with ARGC elements) for