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 gkittelson 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
Dec 8, 2003
1
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.

Part and Inventory Search

Sponsor

Back
Top