---
name: "PGAPrintString"
section: "3"
platform: "linux"
package: "pgapack"
version: "1.0.0.1-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/PGAPrintString"
---

# PGAPrintString(3)

write the allele values in a string to a file

## NAME

PGAPrintString - write the allele values in a string to a file

## INPUT PARAMETERS

- ctx

  \- context variable

- fp

  \- pointer to file to write the string to

- p

  \- index of the string to write out

- pop

  \- symbolic constant of the population string p is in

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
void  PGAPrintString(ctx, file, p, pop)
PGAContext *ctx
FILE *file
int p
int pop
```

## LOCATION

report.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int p;
:
PGAPrintString(ctx, stdout, p, PGA_OLDPOP);
```
