Well, I originally said the use case was "how to get a list of extended
ASCII characters into a file on FreeDOS" .. so really, I mean *extended*
ASCII here. And yes, any code less than 0 or greater than 255 is not valid
extended ASCII, so that's why I print those invalid code requests as '?' to
indicate an error. :-)

I suppose I should have printed an error on stderr, but this was just a
quick program to help this user with this use case. I shared it in case
others were interested. (But it's a trivial program anyway.)

Jim

On Sun, Aug 1, 2021 at 12:12 PM Robert Riebisch <r...@bttr-software.de> wrote:

> Hi Jim,
>
> > So if you want to print out the degree symbol (ASCII decimal 248) you
> > would type:
> >
> > char 248
> >
> > (ASCII codes not in 0-255 are printed as '?' instead.)
>
> Would ASCII codes "not in 0-255" still be ASCII codes? ;-)
>
> Original ASCII is only 128 chars, by the way.
>
> Cheers,
> Robert
> --
>               +++ BTTR Software +++
>      Home page: https://www.bttr-software.de/
> DOS ain't dead: https://www.bttr-software.de/forum/
>
>
> _______________________________________________
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel
>
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to