[hackers] [scc] Print strings with uppercase hexadecimal numbers || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sun, 19 Jul 2015 09:48:33 +0200 (CEST)

commit 8725d3f744980d3c1998a2fb7bbddb8daf640842
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sun Jul 19 09:41:06 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sun Jul 19 09:41:06 2015 +0200

    Print strings with uppercase hexadecimal numbers

diff --git a/cc1/code.c b/cc1/code.c
index e5ee575..48dd490 100644
--- a/cc1/code.c
+++ b/cc1/code.c
_AT_@ -185,7 +185,7 @@ emitconst(Node *np)
         } else {
                 putchar('"');
                 for (bp = sym->u.s; c = *bp; ++bp)
- printf("%02x", (unsigned) c);
+ printf("%02X", (unsigned) c);
         }
 }
 
Received on Sun Jul 19 2015 - 09:48:33 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 19 2015 - 10:00:20 CEST