I'm creating a shell simulator but the c = fgetc (stdin)
order causes me a segment violation if I do not enter a character. How could I solve it?
I have declared the variable c
of type int
.
Thank you very much
I'm creating a shell simulator but the c = fgetc (stdin)
order causes me a segment violation if I do not enter a character. How could I solve it?
I have declared the variable c
of type int
.
Thank you very much