groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C Strings and String Literals. (Was: Pascal rides again)


From: Alejandro Colomar
Subject: Re: C Strings and String Literals. (Was: Pascal rides again)
Date: Sun, 13 Nov 2022 22:31:03 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1

BTW, just as a curiosity, I'm facing a code base full of unterminated strings, and the good thing is it uses u_char* everywhere. So I'll do some small change to make sure I know which strings are terminated by starting to use char* on those. Then, the compiler will warn me if I mix them at any point. Maybe someone finds that interesting. We bacronymised u_char* to mean _u_nterminated string. :)

I'll get the compiler help me with this trick.

Cheers,

Alex
--
<http://www.alejandro-colomar.es/>

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]