lua-users home
lua-l archive

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


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