I am working with some C++ code that has a timer and the timer runs this:

```
char buf[1024];
ZeroMemory(&buf, sizeof(buf));
somefunction(buf); // this put stuff into buf
otherfunction(buf); // this do stuff with buf

```

somefunction() does a web request and InternetReadFile() puts the data in "buf"

But I need to be able to read the previous buf the next time the timer is executed. How can I store buf in a global var and reassign it or make "buf" equal to the previously stored value if necessary?