Simplify macOS fix to 1984/anonymous

It turns out I did not need to add a prototype to read() prior to
main(); all that needed to be done is to specify the args (specifically
the buffer, a void *, in the function (when defining it).

Shortened it a bit by use of implicit ints where allowed.
This commit is contained in:
Cody Boone Ferguson committed 2023-05-07 04:28:58 -07:00
1 parent d8906e0a4d
commit 55798ccbe6
2 files changed
+6 -7

No files matched your search

+2 -2
View File
@@ -1,2 +1,2 @@
int read(int,void*,int);i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\
o, world!\n",'/'/'/'));}read(int j,void *i,int p){write(j/p+p,i---j,(int)i/(int)i);}
i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\
o, world!\n",'/'/'/'));}read(j,i,p)void*i;{write(j/p+p,i---j,(int)i/(int)i);}