GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
/* mpz expression evaluation, simple part */12/*3Copyright 2000, 2001 Free Software Foundation, Inc.45This file is part of the GNU MP Library.67The GNU MP Library is free software; you can redistribute it and/or modify8it under the terms of either:910* the GNU Lesser General Public License as published by the Free11Software Foundation; either version 3 of the License, or (at your12option) any later version.1314or1516* the GNU General Public License as published by the Free Software17Foundation; either version 2 of the License, or (at your option) any18later version.1920or both in parallel, as here.2122The GNU MP Library is distributed in the hope that it will be useful, but23WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY24or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License25for more details.2627You should have received copies of the GNU General Public License and the28GNU Lesser General Public License along with the GNU MP Library. If not,29see https://www.gnu.org/licenses/. */3031#include <stdio.h>32#include "gmp.h"33#include "expr-impl.h"343536int37mpexpr_va_to_var (void *var[], va_list ap)38{39int i = 0;40void *v;4142for (;;)43{44v = va_arg (ap, void *);45if (v == NULL)46break;47if (i >= MPEXPR_VARIABLES)48return MPEXPR_RESULT_BAD_VARIABLE;49var[i++] = v;50}5152while (i < MPEXPR_VARIABLES)53var[i++] = NULL;5455return MPEXPR_RESULT_OK;56}575859