Skip to content

Commit

Permalink
Merge pull request #15 from yuki-asano/master
Browse files Browse the repository at this point in the history
add sample
  • Loading branch information
yuki-asano authored Dec 22, 2016
2 parents bc436cf + 5c83a69 commit 6b5e055
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions khr_driver_semi2016/src/fprintf.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <stdio.h>
#include <stdlib.h>

int main()
{
fprintf(stdout, "test1output\n");

return 0;
}
16 changes: 16 additions & 0 deletions khr_driver_semi2016/src/fscanf.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <stdio.h>
#include <stdlib.h>

int main()
{
char str[100];

fprintf(stdout, "in test2\n");

fscanf(stdin,"%s", str);

printf("%s\n", str);
fprintf(stdout, "scaned str: %s \n", str);

return 0;
}

0 comments on commit 6b5e055

Please sign in to comment.