answered 2023-05-22 05:20:01 +0000
The equivalent function in Ubuntu is the getchar function from stdio.h.