i'm sure there must be a function in one of the standard headers, i'm just not sure what it is