COMP.OS.CPM-------------- < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 3 из 100
 От   : Mark Ogden                          2:5075/128        13 авг 23 08:18:04
 К    : ladislau szilagyi                                     13 авг 23 18:20:02
 Тема : Re: Aztec-C usage?
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<33dacb9b-8ee5-4d40-a60f-0e1268d629bdn@googlegroups.com> db8dbc50
@REPLY:
<d355e18f-3b3f-42d0-9198-e3a9bde7980fn@googlegroups.com> ed1b09f6
@REPLYADDR Mark Ogden <ogdenpm@gmail.com>
@REPLYTO 2:5075/128 Mark Ogden
@CHRS: CP866 2
@RFC: 1 0
@RFC-References: 1@dont-email.me>
<kjf1ifFi86sU1@mid.individual.net> 1@dont-email.me> <878ral5vod.fsf@tilde.institute>
<874jl95u8j.fsf@tilde.institute> <fe884213-dbce-4c6f-a122-12c173f0895cn@googlegroups.com>
<c6b6bc25-67c3-4857-90d5-d2de37300ff1n@googlegroups.com> 1@dont-email.me>
<df48f126-36f2-4ec3-be4a-7ba81c3e1bcan@googlegroups.com> <d355e18f-3b3f-42d0-9198-e3a9bde7980fn@googlegroups.com>
@RFC-Message-ID:
<33dacb9b-8ee5-4d40-a60f-0e1268d629bdn@googlegroups.com>
@TZUTC: -0700
@PID: G2/1.0
@TID: FIDOGATE-5.12-ge4e8b94
On Sunday, 13 August 2023 at 09:13:49 UTC+1, ladislau szilagyi wrote:
> Hi Mark, 

> I`m using the version v3.09 of the HiTech C compiler.
 > > Other compilers e.g. Hitech C, do have open modes e.g. "rt"
or "wt" to open a file as text and "rb" or "wb" to open as binary,
implementing the differences beneath the covers. 
> > 
> > Mark
 > ... you`re right about the "t" modifier (HiTech C considers
`text` mode as the default mode), but it has the "b" binary modifier (you
can open a binary file using fopen(fname, "rb") 

> Ladislau
 In general C compilers for CP/M, MSDOS and Windows, treat the "t"
modifier as the default. For Unix variants the modifiers are ignored, however
processing CP/M or Windows text files on Unix variants has its own issues as
the carriage return is passed through on input.

 For all compilers replicating carriage return, followed by multiple
line feeds, as was common for line printer interfacing, is more
challenging to implement. For CP/M, MSDOS and windows writing in binary mode is
an option, however although Unix variants can write the characters to a
file, if writing directly to a device, the auto expansion of "
" to "
" needs to turned off.
--- G2/1.0
 * Origin: usenet.network (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх