summaryrefslogtreecommitdiff
path: root/assembler.c
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-04-06 15:35:12 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-04-06 15:35:12 +1000
commit7b62c20136b2164d392668d0d74b519e9eeb487b (patch)
tree01fa3c221d7ea590e32076895b24132860d3c9d3 /assembler.c
parent98c242def30ae70f327323d65485b41bdbd151b4 (diff)
shifting towards new structure
Diffstat (limited to 'assembler.c')
-rw-r--r--assembler.c2
1 files changed, 1 insertions, 1 deletions
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;