c++ application to test char driver