Sujet : Re: Suggested method for returning a string from a C program?
De : bc (at) *nospam* freeuk.com (bart)
Groupes : comp.lang.cDate : 20. Mar 2025, 20:15:55
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vrhphb$3s62l$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Mozilla Thunderbird
On 20/03/2025 18:46, Michael S wrote:
On Thu, 20 Mar 2025 15:40:20 +0000
bart <bc@freeuk.com> wrote:
>
Pretty much every other open source project I look likes to define
their own types!
>
So I have to ask, why do think they do that?
>
Most likely mindless parroting of 40 y.o. examples.
I don't think so. Where such sets of types exist, they tend to be defined on top of long long too, or even on top of stdint.h types.
Look at this one for example:
typedef uint8_t byte; // from arduino.h
I can only one of reason this exists, which is that 'byte' is a far nicer denotation.
You might also consider why such examples existed even 40 years ago.