Just a side note for the future: passing structure variables as function parameters is not optimized if the structure is large (some compilers and static analyzers will complain). str is a small structure and it is fine, so not something that must to change here. Otherwise is recommended to pass the address (the pointer). What I mean is to have:

static int get_type(str *ctype)

instead of:

static int get_type(str ctype)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.