diff options
author | FRIGN <dev@frign.de> | 2014-09-29 18:29:37 +0200 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-09-29 17:53:27 +0100 |
commit | 6032d2c761069a58a2d75e32fdb676ea7dd01974 (patch) | |
tree | cce1613bab43c4281aa76cce63ac59ed9db3109e | |
parent | a1c948e61f87b29dc9ed5a35364ee25af7e8df49 (diff) |
Small refactor in printrat()
Don't use 3 printf's when 1 is possible.
-rw-r--r-- | ratox.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -207,8 +207,8 @@ static void usage(void); static void printrat(void) { - printf("\033[31m"); - printf( " /y\\ /y\\\n" + printf( "\033[31m" + " /y\\ /y\\\n" " /ver\\ /"VERSION"\\\n" " yyyyyy\\ /yyyyyy\n" " \\yyyyyyyyyyyyyyyyyy/\n" @@ -221,8 +221,8 @@ printrat(void) " \\yyyyyyyy/\n" " -------yyyyyyyy-------\n" " ..---yyyyyy---..\n" - " ..--yyyy--..\n" ); - printf("\033[0m\n"); + " ..--yyyy--..\n" + "\033[0m\n"); } static void |