Skip to content
Jurek Muszyński edited this page Sep 13, 2019 · 1 revision

bool QSF(const char *param, float *value)

Description

Scans query string for param and if found, converts it to float and copies to value. For POST, PUT and DELETE methods it assumes query string is in payload.

Returns

Returns true if param is present in query string, otherwise false.

Example

float amount;

if ( !QSF("amount", &amount) )
    amount = 0;
Clone this wiki locally