ARIF_SELECT_PAGE(3) ARIF User Manual ARIF_SELECT_PAGE(3)

arif_select_page - select the page of candidates

#include <arif/arif.h>
int
arif_select_page (
    struct arif_ctx *ctx,
    int              idx
);

The arif_select_page() function changes the input context ctx's current page of candidates to the page referred to by idx.

The argument idx can either be a specific page number (starting at 1), or a relative page (-1 for the previous page, and 0 for the next page).

If the page does not exist, this function has no effect.

Returns the page number if the given page exists, or -1 if otherwise.

If the arif_select_page() function is not yet called after a query, the first page is the current page.

Copyright (C) 2023 CismonX <admin@cismon.net>

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.

You should have received a copy of the license along with this document. If not, see <https://www.gnu.org/licenses/fdl-1.3.html>.

arif_query(3)

January 2, 2023 0.1.0