Curses and portability question.

David Megginson david at doe.utoronto.ca
Thu Dec 13 01:30:50 AEST 1990


In article <1990Dec10.110403.139 at vax1.mankato.msus.edu> accwork at vax1.mankato.msus.edu writes:
>
>I am writing a program, which i hope to maintain a high level of portability. 
>But i also want to some screen management.  I was planning on using curses.  Is
>this a "good" choice ?  Is their something that is more standard ?  I hope to
>keep the portability accross a vax, and a pc.  So is their any chance of this ?
>
>thanks for your time.
>   brian.
>--
>Brian D. Goecke
>Mankato State University
>Accademic Computer Center Programmer.
>accwork at vax1.mankato.msus.edu
>   

There is a good curses library for GCC on the Atari ST, and I have seen at
least one for the PC. The most important thing about portability will be
to remember that sizeof(int) != sizeof(void *) on many machines (the
reason why porting sloppily-written Unix code can be hell). Also, on
some machines, malloc() takes an int argument, while under ANSI C, it can
take a (size_t) argument, where size_t _could_ be (long) or (unsigned long).


David Megginson
-- 
////////////////////////////////////////////////////////////////////////
/  David Megginson                      david at doe.utoronto.ca          /
/  Centre for Medieval Studies          meggin at vm.epas.utoronto.ca     /
////////////////////////////////////////////////////////////////////////



More information about the Comp.lang.c mailing list