Commit 01ad5298 authored by Marta Boshkovska's avatar Marta Boshkovska
Browse files

Listes finies

parent 854be057
Loading
Loading
Loading
Loading
+2 −0
Changes for src/bignum.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -3,12 +3,14 @@

typedef mpz_t* bignum_t;

/*Creation d'un grand nombre egal a 0*/
bignum_t bignum_zero(){
  bignum_t x = (bignum_t) malloc(sizeof(mpz_t));
  mpz_init(*x);
  return x;
}

/*Initialise un nouvelle nombre et set son value a n*/
bignum_t bignum_from_int(int n){
  bignum_t x = (bignum_t) malloc(sizeof(mpz_t));
  mpz_init_set_si(*x, (signed long int) n);
−16 B (9.68 KiB)

File changed.

No diff preview for this file type.

−16 B (4.53 KiB)

File changed.

No diff preview for this file type.

+1 −1
Changes for src/hash_tbl.h: 1 added line, 1 removed line.
Original line number Diff line number Diff line
#ifndef __HASH_TBL__
#define __HASH_TBL__

#include "linked_list.h"
#include "list.h"

struct hash_tbl {
  size_t (*h)(void*);
−16 B (4.51 KiB)

File changed.

No diff preview for this file type.

Loading