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
0b2cf901
Commit
0b2cf901
authored
Jan 17, 2017
by
Martin Pépin
Browse files
Fix input int
parent
97bdc22b
Changes
1
Hide whitespace changes
Inline
Side-by-side
simulator/syscall.ml
View file @
0b2cf901
...
...
@@ -4,7 +4,9 @@ let sys_print_int a0 =
0
(** 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.
The string must end with \000. *)
...
...
Write
Preview
Markdown
is supported
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