Re: [dev] Learn C

From: <sylvain.bertrand_AT_gmail.com>
Date: Tue, 26 Mar 2019 22:35:39 +0000

On Tue, Mar 26, 2019 at 08:56:07PM +0100, Kurt Van Dijck wrote:
> I agree with most of your arguments
>
> > * use sized types: u8 u16 i64 float32 etc... you can use the C
> > preprocessor to fix that, but in some case, as a good tradeof (for instance in
> > "object oriented C code"), add a suffix to your type (u8_t, struct my_class_t), then
> > for instance you can nest structs, struct base_type_t base_type.
>
> Why not use uint8_t etc. from stdint.h?

Shorter
Received on Tue Mar 26 2019 - 23:35:39 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 27 2019 - 03:48:07 CET