The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-09-2007
xxxaxa xxxaxa is offline
Registered User
 

Join Date: May 2007
Posts: 3
Red face Surrounding a chunk of code by #ifdef and #endif

Hello the great gurus

I'm quite new to this, so perhaps I'm asking a simple and trivial question (which is good, because you'll answer for sure )))

Anyway. I have an amount of *.c files (about 100), and what I want to do, is to surround a specific function call with #ifdef and #endif.

Example:
Code:
MyFunc(a,b,c);
Should be
Code:
#ifdef JUST_DONT
MyFunc(a,b,c);
#endif
Now how do I do that?

Thank you very very much.
Reply With Quote
Remove advertisements
!!
!! Forum Sponsor