gmp_libmpz_clear Method |
Namespace: Math.Gmp.Native
public static void mpz_clear( mpz_t x )
Public Shared Sub mpz_clear ( x As mpz_t )
public: static void mpz_clear( mpz_t^ x )
static member mpz_clear : x : mpz_t -> unit
Call this function for all mpz_t variables when you are done with them.
// Create and initialize a new integer x. mpz_t x = new mpz_t(); gmp_lib.mpz_init(x); // Assert that the value of x is 0. Assert.IsTrue(gmp_lib.mpz_get_ui(x) == 0U); // Release unmanaged memory allocated for x. gmp_lib.mpz_clear(x);
' Create and initialize a new integer x. Dim x As New mpz_t() gmp_lib.mpz_init(x) ' Assert that the value of x is 0. Assert.IsTrue(gmp_lib.mpz_get_ui(x) = 0UI) ' Release unmanaged memory allocated for x. gmp_lib.mpz_clear(x)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.