Where easy to find prototypes of standard C functions

When coding C # in an IDE, such as Visual Studio, it’s pretty convenient to β€œjump to a definition or declarations." So we easily know prototypes / function interfaces / APIs.

Question: Is there an easy way to find standard prototypes of C functions? How does a database or feature declaration index, or a website search for feature names or a * NIX command?

The solutions that work / integrate into VIM are great.

If you recommend downloading the source code and then grep , can you give a grep command that returns more accurate results. Since grep can return all strings that have the name of this function.

+5
source share
2 answers

* NIX team?

Yes, the man command, for example man fopen . Type man man at the command line to read her man man page. If the same keyword has several meanings (and therefore several man pages ), you may need to specify the section number = "http://en.wikipedia.org/wiki/Man_page#Manual_sections"> , i.e. . man 3 time .

The solutions that work / integrate into VIM are great.

In vim , to view the help page for the word under the cursor, press Shift + K.

+7
source

I would say that one place to look for prototypes is the C standard itself. You can download the latest version for C99 and C11 from here . In addition, I agree with the approach of man 3 func .

+3
source

Source: https://habr.com/ru/post/1204048/


All Articles