The following equation defines the one-pole filter :
y(n) = x(n) - a * y(n-1), 0 < a < 1.0
The single coefficient defines the gain and time-constant of the filter as follows :
Time constant :
This algorithm is included in the SigLib DSP Library.
If you have found this solution useful then please do hit the Google (+1) button so that others may be able to find it as well.
Numerix-DSP Libraries : http://www.numerix-dsp.com/eval/