Get a URL parameter

C function to check if a parameter exists in query string and return
it's value