cling icon indicating copy to clipboard operation
cling copied to clipboard

scanf does not work in cling

Open pankajkumar229 opened this issue 2 years ago • 1 comments

  • [x] Checked for duplicates

Describe the bug

scanf does not work in cling, only cin does.

Expected behavior

scanf should issue a prompt like cin does

To Reproduce

#include <stdio.h> int n; scanf("%d", &n);

pankajkumar229 avatar Oct 28 '22 19:10 pankajkumar229

Uh, works for me (in 6.26/10, macosxarm64)

root [0] int n; scanf("%d", &n);
5
root [1] n
(int) 5

edfink234 avatar Mar 01 '23 10:03 edfink234

Seems to work with current master, too.

ferdymercury avatar Apr 12 '24 13:04 ferdymercury