---
name: "PGAGetIntegerInitType"
section: "2"
platform: "linux"
package: "pgapack"
version: "1.1.1-3"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/PGAGetIntegerInitType"
---

# PGAGetIntegerInitType(2)

returns the type of scheme used to randomly initialize strings of data type PGA\_DATATYPE\_INTEGER.

## NAME

PGAGetIntegerInitType - returns the type of scheme used to randomly initialize strings of data type PGA\_DATATYPE\_INTEGER.

## INPUT PARAMETERS

- ctx

  \- context variable

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
int  PGAGetIntegerInitType(ctx)
PGAContext *ctx
```

## LOCATION

integer.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int inittype;
:
inittype = PGAGetIntegerInitType(ctx);
switch (inittype) {
case PGA_IINIT_PERMUTE:
printf("Data Type = PGA_IINIT_PERMUTE0);
break;
case PGA_IINIT_RANGE:
printf("Data Type = PGA_IINIT_RANGE0);
break;
}
```
