fgetc - Segmentation fault

0

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

    
asked by Álvaro García Merino 05.12.2018 в 23:37
source

0 answers