"ff" <ff-@uol.com.br> writes:
> I could not find any way to store a value in a C function
> between calls.
A static variable such as you illustrated should work fine --- at least
for successive calls within a single session. It will not provide
communications across sessions. For that you'd need to use a file or
grab some shared memory (this is doable but bear in mind that it's a
very finite resource).
regards, tom lane