---
name: "struntabify"
section: "3pub"
platform: "linux"
package: "publib-dev"
version: "0.40-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/struntabify"
---

# struntabify(3pub)

convert tabs to spaces

## NAME

struntabify - convert tabs to spaces

## SYNOPSIS

```
#include <publib.h>
char *struntabify(char *str, size_t tabsize);
```

## DESCRIPTION

*struntabify* will convert all tab characters ('\\t') in the string *str* to spaces.  Tab positions are at every *tabsize* columns. The string is supposed to be big enough to hold the conversion, which is done in place.

## RETURN VALUE

*struntabify* will return its first argument.

## SEE ALSO

publib(3), strtabify(3)

## AUTHOR

Lars Wirzenius (lars.wirzenius@helsinki.fi)
