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

# PGAGetNoDuplicatesFlag(8)

Returns PGA\_TRUE if duplicates are not allowed, else returns PGA\_FALSE.

## NAME

PGAGetNoDuplicatesFlag - Returns PGA\_TRUE if duplicates are not allowed, else returns PGA\_FALSE.

## INPUT PARAMETERS

- ctx

  \- context variable

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

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

## LOCATION

duplcate.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int nodups;
:
nodups = PGAGetNoDuplicatesFlag(ctx);
switch (nodups) {
case PGA_TRUE:
printf("Duplicate strings not allowed in population0);
break;
case PGA_FALSE:
printf("Duplicate strings allowed in population0);
break;
}
```
