diff options
author | Teddy <ted.sybil@gmail.com> | 2014-05-04 12:25:38 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2014-05-04 12:25:38 +0800 |
commit | 40bda56596d46c65d3d2a37e96f1b5313ad9fe57 (patch) | |
tree | 9bcf9ac9a902d8e33ef753e0177c7610f5b3a9ce /printf.c | |
parent | 5aba86743d63a9d7000ce4e410ff7c61bcb0547f (diff) |
...
Diffstat (limited to 'printf.c')
-rw-r--r-- | printf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ -int printf(char *fmt) { +int printf(char *fmt, int pos) { char *arg, ch; int len, x; - arg = (int)&fmt + sizeof(char*); + arg = (int)&pos; while ((ch = *fmt)) { if (ch == '%') |