On Sun, 7 Mar 2004, Luchezar Georgiev wrote:

> EXACTLY! Now I see that put_unsigned() and put_string in prf.obj have a
> CBW instruction that does just that! So, what do you suggest? I think that
> we can just apologise to K&R and change c in put_console() to char.

or cast to unsigned char. That's standard practice just like for is*
functions. Well the idea of this is that getchar() returns int() so you
would keep a single character read from a file in an int. With a special
value being EOF (usually -1, but just has to be negative in general).

In our case put_console can just as well take unsigned char since it
doesn't deal with EOF.

Brt



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to