Posted By: alibaba
inchar(NULL) is giving wrong values - 09/27/15 08:40
Why is inchar giving bad values? Changing literally anything in this code fixes it, like removing the wait, removing the parameter whatever.
EDIT: Also having lol as var and then casting as char gives bad values.
Code:
#include <acknex.h> #include <default.c> STRING* testStr="abcd"; void input(STRING* str) { while(1) { char lol=inchar(NULL); printf(lol); wait(1); } } void main() { input(testStr); }
EDIT: Also having lol as var and then casting as char gives bad values.