Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LIB files

Status
Not open for further replies.

gandhiuk

Technical User
Joined
Dec 8, 2003
Messages
1
Location
GB
Hi I'm new to C and was wondering whether there is anyway of extracting the functions from within a LIB file into some readable form?

Thanks in advance.
 
If you're talking about getting back the C source code, then the answer is no.

Some decompile tools can recover something which a C compiler can understand, but it's far from being useful C source code (you wouldn't want to modify it), and is certainly not what was originally written by the author.

Trivial example
Code:
int i;
for ( i = 0 ; i < 10 ; i++ ) printf(&quot;%d&quot;,i);

int i = 0;
while ( i < 10 ) printf(&quot;%d&quot;,i++);
These produce identical code with my compiler.

--
 
Status
Not open for further replies.

Similar threads

  • Locked
  • Question Question
Replies
1
Views
909
Replies
1
Views
541
Replies
0
Views
298
Replies
7
Views
569

Part and Inventory Search

Sponsor

Back
Top