当前位置: 动力学知识库 > 问答 > 编程问答 >

c - Identifying global variable assignments

问题描述:

Is there a way to locate all the functions that assign to a specific global variable ?

For example, In one .c file are all my globals :

int x;

I would like to know which functions this variable x is being assigned in:

void temp(void) {

x = 1;

}

Here x is assigned in the function temp.

分享给朋友:
您可能感兴趣的文章:
随机阅读: