Skip to content

Commit

Permalink
Merge branch 'slim'
Browse files Browse the repository at this point in the history
  • Loading branch information
nyuichi committed Jun 25, 2014
2 parents c7d08eb + 78903fd commit 45cad16
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 471 deletions.
6 changes: 4 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ test_memio(void)
/* output */
xfprintf(mem, "%d %s %c\n", 42, "hello", 'A');

xrewind(mem);

/* input */
while ((c = xfgetc(mem)) != -1) {
putchar(c);
xputchar(c);
}
puts(" equals '42 hello A\n'?");
puts(" equals ?: \n42 hello A\n");

assert(xfclose(mem) == 0);
}
Expand Down
Loading

0 comments on commit 45cad16

Please sign in to comment.