---
name: "downstr"
section: "3"
platform: "linux"
package: "alliance"
version: "5.1.1-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/downstr"
---

# downstr(3)

convert a string to lower case

## NAME

downstr - convert a string to lower case

## SYNOPSYS

```
#include "mut.h"
void downstr(s, t)
char ∗s, ∗t;
```

## PARAMETERS

- *s*

  Pointer to the source string

- *t*

  Pointer to the destination string

## DESCRIPTION

**downstr** converts the *s* string to lower case in *t*. The space for *t* must be allocated by the caller, and be at least **strlen(s) + 1** long.

## EXAMPLE

```
#include "mut.h"
void cmp()
{
char ∗s = "PWET", t[5];
	downstr(s, t);
	if (strcmp(t, "pwet")) {
		fprintf(stderr, "Downstr sucks, man");
		EXIT();
	}
}
```

## SEE ALSO

**mbk**(1), [**upstr**(3)](/upstr/3.md).
