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

What are the different types of C instructions?

681


Can we change the value of static variable in c?

568


Is c language still used?

540


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1501


Create a simple code fragment that will swap the values of two variables num1 and num2.

817






Explain why can’t constant values be used to define an array’s initial size?

860


What is a buffer in c?

578


How are pointers declared in c?

603


What is the most efficient way to count the number of bits which are set in an integer?

595


Can we compile a program without main() function?

637


What is structure padding in c?

632


what does static variable mean?

657


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1269


Differentiate abs() function from fabs() function.

602


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

1788