eErrorT ChainCtrlExit (ChainCtrlT * pChainCtrl)
ChanT* ChainCtrlGetBitStreamChan (ChainCtrlT * pChainCtrl,
char * name
)
eErrorT ChainCtrlInit (ChainCtrlT * pChainCtrl,
char * name,
int instance,
void * pOwner
)
int SymContDecNamesCount = (sizeof(SymContDecNames)/sizeof(SymContDecNames[0]))
char* SymContEncNames[]
int SymContEncNamesCount = (sizeof(SymContEncNames)/sizeof(SymContEncNames[0]))
I want to extarct only function arguments ...that is
输出我只需要在一行中提取函数定义参数
ChainCtrlT * pChainCtrl
ChainCtrlT * pChainCtrl, char * name
ChainCtrlT * pChainCtrl, char * name, int instance, void * pOwner
我的代码
open(FILE, "< functions2.txt") or die $!;
open(FILE1, "> functions3.txt") or die $!;
my @Array1=<FILE>;
foreach my $text (@Array1){
$text =~ /\((.+)\)/;
print FILE1 $text;
}
但它正在将所有内容提取到新文件中。基本上是复制文件内容