This question already has answers here:
C library source code [closed]
(6 answers)
Closed 4 years ago.
There is some way to see the source code of the functions contained in the C standard library and in the headers files like stdio.h?
https://www.gnu.org/software/libc/ there you go. Google is the best answer in some cases!
Depends on what you want to do with it. If you only want to get some idea then you can go with Gixuna's response. If you need to see your system's exact source code you have to get it from your distribution, they may apply patches, backports. For example if you have a debian system or derivates you can say:
apt-get source libc6
RPM based systems have different methods to get their SRPMs but I'm not familiar with those.
Also, be prepared that analyzing this source code will not be a walk in the park.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Backstory: I have searched around and read some questions from SO, but I am still somewhat confused.
I learnt C at University, only been here 1 semester and we're on break.
I learnt to program in C under a Unix environment, Mac OS X and Ubuntu and it was dead easy.
Open terminal, install GCC, start using vim and writing some make files for your projects and you're done.
I have removed my Ubuntu partition since I only used it for C programming, I am too grounded in Windows (games etc...) and I am looking for a similar experience on Windows.
I don't particularly want to install anything from .NET at all, since it's never just the application, but 500000 other useless things - which pisses me off to be honest.
TL;DR;
I heard MinGW was using an extremely old version of gcc and isn't maintained, otherwise I would be using that.
So does anyone know of a gcc, no nonsense port or otherwise for C programming on Windows?
I can use Notepad++ for writing the .c files and syntax hilighting, I don't care about an IDE at all.
The easiest way would probably be to install cygwin (you may need to explicitly select "gcc" from the development section). If you had worked on unix, it would probably be a good idea to cygwin on your windows machine anyways.
You can use an IDE such as visual studio that will bundle all the needed features (compiler, libraries, etc)
If you don't want to bother with an IDE and prefer the lightness of vim, installing it on windows and compiling in the CLI is a pain, Cygwin is cool (see other answer) but I can't bear the windows terminal compared to the Linux / Mac ones.
Maybe consider using a Virtual Machine running Ubuntu for all your development.
The answer to your question is NO.
You either use MinGW, or you use Visual Studio. There is no lightweight third option, unless you want to use Turbo C.
I am using MinGW now - I was informed incorrectly about it using an outdated version of GCC.
In a way, I suppose I deserve the down votes for not checking myself.
Oh well, you live and learn.
Try these:
CodeBlocks:
http://www.codeblocks.org/
Eclipse, as someone mentioned earlier too;
-older versions of programs are good for learning too like:
Borland C++ 3.1
Turbo C
(both DOS based)
Try Visual studio 6.0 :)
no .NET on that release.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Can I get C’s pthread.h to compile in Windows?
I am using eclipse on Windows 7.I am trying multi threaded programming in C.But I am not able to include pthread.h.It says No such file or directory.It worked on another Windows 7 machine but does not seem to work on this one.Please help me out.
pthreads, also known as POSIX threads, are a facility of POSIX-conformant operating systems (usually Unix-like systems, such as Linux and Mac OS X.) Windows does not have it. You will need to install a Windows port of pthreads. You can get it here: http://sources.redhat.com/pthreads-win32
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Source code for java array
There is a Java source file for java.lang.Object in the OpenJDK, which surprised me a bit, but I thought it was pretty interesting.
That got me wondering whether there is a source file for arrays (which after all are types of Object). Or is their behaviour hard-wired into the JVM somehow?
If such a thing existed, I would expect a lot of the methods to be native as I'm not sure how you could make it without being completely self-referential. But I'm curious as to whether it even exists.
See Where can I find the source code for Java arrays?
The poster also linked to this for OpenJDK
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
How can one grab a stack trace in C?
In PHP it's debug_backtrace,is there such a function in c?
On Windows you can call the StackWalk64 function that is exported by DBGHELP.DLL. It is shipped with Debugging Tools for Windows (WinDbg) but according to this link, "The redistribution policies for these included DLLs were specifically designed to make it as easy as possible for people to include these files in their own packages and releases."