|
@@ -7,15 +7,12 @@ int w_count = 1;
|
|
|
int f_check, str_len, j;
|
|
|
|
|
|
/* help message */
|
|
|
-void print_help()
|
|
|
-{
|
|
|
- puts("usage:");
|
|
|
- puts("\t$ upper [options] [text]");
|
|
|
- puts("options:");
|
|
|
- puts("\t-f\tfirst character only");
|
|
|
+void print_help() {
|
|
|
+ puts("usage:\n\t$ upper [-f] [text]\noptions:\n\t-f\tfirst character only");
|
|
|
exit(1);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
int main(int argc, char *argv[])
|
|
|
{
|
|
|
/* if there is no arguments print help message */
|