[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: const char* typedefs
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 5 Feb 2018 22:19:47 +0200
2018-02-05 22:04 GMT+02:00 Paige DePol <lual@serfnet.org>:
> Paige DePol <lual@serfnet.org> wrote:
>
>> typedef const char* l_str
>
> Nobody has an opinion on this style of typedef?
>
> The question may seem noob'ish, but really I am just curious if
> anyone else uses a typedef like this or if I am violating some
> sort of unwritten rule when coding in C.
As far as I am concerned, whatever is not deprecated by Kernihan
and Plauger [1] is good C style.
[1] https://en.wikipedia.org/wiki/The_Elements_of_Programming_Style