Skip to content
Jurek Muszyński edited this page Oct 25, 2020 · 3 revisions

bool QSU(const char *param, unsigned *value)

Description

Scans query string for param and if found, converts it to unsigned integer 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

unsigned page;

if ( !QSU("page", &page) )
    page = 1;
Clone this wiki locally