Can we see the definitions of predefined functions in C language? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can we see the definitions of predefined functions in C language?

18th Oct 2018, 4:21 PM
panyam kaivalya
panyam kaivalya - avatar
3 Answers
+ 3
If the compiler is open source, yes you can get it and modify it to your hearts content. This is where GNU Compiler Collection is maintained. https://github.com/gcc-mirror/gcc
18th Oct 2018, 10:16 PM
John Wells
John Wells - avatar
18th Oct 2018, 10:31 PM
John Wells
John Wells - avatar
0
No we cannot see how a predifined function is written in C. But we can recreate it just as I have recreated the strlen() function.
18th Oct 2018, 5:09 PM
Asgar Ali
Asgar Ali - avatar