Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
Need A program for variable Separator Matching



agutal
New User

May 9, 2009, 9:04 AM


Views: 5055
Need A program for variable Separator Matching

i m writing a prg. for Code Analysis for C Code in which i need to
replace a particular variable wid the pattern.

Code is :
eg :
x=t+1;
p= malloc(x+1);
q = strlen(var,0);

Now i have to replace a particular variable such as "x" wid string "Taint" . how to write a separator code

such as
Taint = t+1;
p = malloc(Taint+1);
q=strlen(var,0);

can any one help me wid this.
This goes for for C language in which variables are declared and accessed.

Thnks


(This post was edited by agutal on May 9, 2009, 9:06 AM)