HOW CAN ADD OUR FUNCTION IN LIBRARY.

Answer Posted / ravi joshi

Do you mean funtion(s) in libc? if not, it is very simple.
Irrespective or static or dynamic, the library always
contains an executable code but not linked. When application
uses the library, the code is linked at application link
time or load time depending on whether the library is static
or dynamic respectively.

for adding function in a library, just add the new function
as if you are adding any other function and recompile it as
a library. When linked with application, the new function
will become useable.

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

731


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

600


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2271


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

2308


How will you divide two numbers in a MACRO?

676






What is null pointer in c?

571


What is malloc and calloc?

550


What functions are in conio h?

635


What does void main return?

582


What is c token?

588


What is a c token and types of c tokens?

564


How can I generate floating-point random numbers?

576


Can a program have two main functions?

552


Explain what is wrong with this statement? Myname = ?robin?;

949


Explain what is the difference between far and near ?

621