Why is inchar giving bad values? Changing literally anything in this code fixes it, like removing the wait, removing the parameter whatever.

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.

Last edited by alibaba; 09/27/15 08:40.

Professional Edition
A8.47.1
--------------------
http://www.yueklet.de