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

# PGASelectNextIndex(3)

returns the index of next individual in internal array that contains the indices determined by PGASelect

## NAME

PGASelectNextIndex - returns the index of next individual in internal array that contains the indices determined by PGASelect

## INPUT PARAMETERS

- ctx

  \- context variable

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

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

## LOCATION

select.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int l;
:
l = PGASelectNextIndex(ctx, PGA_OLDPOP);
```
