Mail Archives: djgpp/2000/08/31/04:45:23
On Wed, 30 Aug 2000 22:14:30 GMT, eglebbk AT dds DOT nl (Evert Glebbeek)
wrote:
>Newsgroup: comp.os.msdos.djgpp
> From: Radical NetSurfer <radsmail AT juno DOT com>
> On Fri, 25 Aug 2000 02:44:18 -0400
>
>>Tonight we had to create our very own code for
>>
>>strupr
>>
>>simply because DJGPP does NOT implement this function
>>correctly at ALL :(
Or implement a function
char *strxlate(char *string, int (*xlatefunc)(int));
where strupr(string) would be written strxlate(string, toupper)
>Portable programs shouldn't be assuming an ASCII character set.
They can if they're reading files guaranteed to be ASCII or something
similar (e.g. .txt files).
>IMHO, the point of programming in C is to actually produce
>portable code.
According to the ANSI/ISO C standard, is a file created by fopen()
(ANSI, POSIX) and written to with fprintf() (ANSI, POSIX) guaranteed
to be usable in another program that uses fopen() (ANSI, POSIX),
fgets() (ANSI, POSIX), and sscanf() (ANSI, POSIX)?
Are there any systems that:
o are in common use in The Year 2000,
o are typically programmed in C, and
o use an encoding for Basic Latin other than ASCII, such as Baudot or
EBCDIC?
--
MS (n) 1. A debilitating and surprisingly widespread affliction
that renders the sufferer barely able to perform the simplest
task. 2. A disease, multiple sclerosis (see).
This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses. http://www.mcafee.com/
- Raw text -