In C, what does “public” mean when put before a global variable?

后端 未结 4 1376
[愿得一人]
[愿得一人] 2021-01-13 12:38

I\'m going through the source code of the \"less\" unix tool by Mark Nudelman, and the beginning of main.c has many of the following:

public int  logfile = -         


        
4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-13 12:59

    C doesn't have a keyword "public", so it's probably a macro defined in the less source code somewhere.

提交回复
热议问题