From 7b62c20136b2164d392668d0d74b519e9eeb487b Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Thu, 6 Apr 2023 15:35:12 +1000 Subject: shifting towards new structure --- assembler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assembler.c') diff --git a/assembler.c b/assembler.c index 5112dc5..e302218 100644 --- a/assembler.c +++ b/assembler.c @@ -29,7 +29,7 @@ int main(int argc; char* argv[]){ // DRAFTING PROG LOGIC char c = 0; char in[10]; -while((c != '\n') && (c != '\0') +while((c != '\n') && (c != EOF) c = getchar; if(c == '#') c = '\n'; in[i] = c; -- cgit v1.2.3