Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Pepin
sysdig
Commits
5051ceb3
Commit
5051ceb3
authored
Jan 17, 2017
by
Daru13
Browse files
Merge branch 'master' of
https://git.eleves.ens.fr/mpepin/sysdig
parents
cecb91db
0b2cf901
Changes
1
Hide whitespace changes
Inline
Side-by-side
simulator/syscall.ml
View file @
5051ceb3
...
@@ -4,7 +4,9 @@ let sys_print_int a0 =
...
@@ -4,7 +4,9 @@ let sys_print_int a0 =
0
0
(** Reads an integer from stdin and returns it *)
(** Reads an integer from stdin and returns it *)
let
sys_input_int
()
=
Scanf
.
scanf
"%d "
(
fun
x
->
x
)
let
sys_input_int
()
=
let
line
=
input_line
stdin
in
int_of_string
line
(** Prints the string starting at start_addr in RAM on stdout.
(** Prints the string starting at start_addr in RAM on stdout.
The string must end with \000. *)
The string must end with \000. *)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment