From 6e99556dcd7f8ecc8f3c927d62b786ae60b50a00 Mon Sep 17 00:00:00 2001 From: Aswin Prasad <72518466+retr0-h0rse@users.noreply.github.com> Date: Sun, 11 Oct 2020 23:06:10 +0530 Subject: [PATCH] Update pgm to read a line --- pgm to read a line | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgm to read a line b/pgm to read a line index 174d15b..eff23f9 100644 --- a/pgm to read a line +++ b/pgm to read a line @@ -7,7 +7,7 @@ int main() if ((fptr = fopen("program.txt", "r")) == NULL) { print("Error! opening file") - exit(1) + exit(2) } scanf(fptr,"%[^\n]", c);