Why is inchar giving bad values? Changing literally anything in this code fixes it, like removing the wait, removing the parameter whatever.
#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.