aboutsummaryrefslogtreecommitdiff
path: root/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'printf.c')
-rw-r--r--printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/printf.c b/printf.c
index 6d3330b..b34ade1 100644
--- a/printf.c
+++ b/printf.c
@@ -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 == '%')