File: hello.c

package info (click to toggle)
postgresql-pgmp 1.0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 556 kB
  • sloc: ansic: 2,059; sql: 853; python: 591; makefile: 101; sh: 15
file content (22 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* A test program to study the mpz_t structure.
 *
 * Copyright (C) 2011-2020 Daniele Varrazzo
 */

#include <stdio.h>
#include <gmp.h>

int
main(int argc, char **argv)
{
    mpz_t z1, z2;

    mpz_init_set_ui(z1, ~((unsigned long int)0));
    mpz_init(z2);
    mpz_add_ui(z2, z1, 1);

    mpz_out_str(stdout, 10, z2);
    printf("\n");

    return 0;
}