Hi all...
where is manipulation functions defined.....?
there declaration like "string.h" is there in "TC\INCLUDE".
from where it gets executed.....
Thanks in advance...
bhupesh
Hi all...
where is manipulation functions defined.....?
there declaration like "string.h" is there in "TC\INCLUDE".
from where it gets executed.....
Thanks in advance...
bhupesh
From the standard C library.
You can look at the GNU C library (glibc) at http://www.gnu.org/software/libc/
The functions that you find declared in <string.h> are part of the C runtime library, which may or may not be available as source code when you get your compiler.
I can't remember whether Turbo C did supply source for the runtime library - I believe it didn't come as standard.
Do you have a specific question about the Turbo C implementation, or what are you actually wanting to know?
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Hi....
thanks for your reply, might b this a silly query....i wanted to know about runtime library only.....how it comes with the compilers and we can use the same as user defined function...
does it come through the library file, .lib ?
thanks
...
bhupesh
Yes, it's generally a library file that comes together with the compiler (or sometimes, for example in the case of gcc) as a separate package that is less tied directly to the compiler version. In modern systems it would be a dynamically loaded library (.DLL or .so) that holds the actual code for the runtime library.
The runtime library is "used" as in binary form, not as source code, so you do not compile the strcpy() function each time you use it - it's just dragged in as an already compiled lump of code when the application is linked into an executable.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
those libraries or dll are linked to our program.exe only?
means compiler (tc.exe) only will link our code to that library implementation?
Yes, the compiler will link a particular application to a particular library. If a newer library comes out, in the non-DLL case, the new code will not be used by existing applications, only applications which are built using the new library will use the new code.
DLL's are linked to the application at load-time, so replacing a DLL with another one of the same name will essentially replace the content of any executable using that DLL.
Turbo C does not produce or use DLL's, so it's kind of irrelevant to the discussion here.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.