|
From: Yang L. <yan...@em...> - 2017-04-18 03:43:41
|
Hi, all!
I'm working on cachegrind source code and would like to read a file when an
option is specified. I've found the file writing apt VG_(open)(...) and
VG_(write) by examing some source code. But I have no clue which function
to use to read a file at valgrind source code level. Is there any
documentation available?
In other words, I'm trying to find the following equivalent C code using
valgrind library functions.
FILE* file = fopen(fileName, "r"); /* should check the result */
char line[256];
while (fgets(line, sizeof(line), file)) {
...
}
fclose(file);
Thanks in advance for any suggestion!
|