---
name: "tickit_stringpos_zero"
section: "3"
platform: "linux"
package: "libtickit-dev"
version: "0.4.3-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tickit_stringpos_zero"
---

# tickit\_stringpos\_zero(3)

clear the fields of a string position counter

## NAME

tickit\_stringpos\_zero - clear the fields of a string position counter

## SYNOPSIS

```
#include <tickit.h>

void tickit_stringpos_zero(TickitStringPos *pos);
```

Link with *-ltickit*.

## DESCRIPTION

**tickit\_stringpos\_zero**() sets the four counter fields of *pos* to zero. This operation is done implicitly by [**tickit\_utf8\_count**(3)](/tickit_utf8_count/3.md), but this function may be useful to initialise a counter to zeros before entering a loop, and using **tickit\_utf8\_countmore**(3) for every iteration.

## RETURN VALUE

**tickit\_stringpos\_zero**() returns no value.

## SEE ALSO

[**tickit\_utf8\_count**(3)](/tickit_utf8_count/3.md), [**tickit\_stringpos\_limit\_bytes**(3)](/tickit_stringpos_limit_bytes/3.md), [**tickit**(7)](/tickit/7.md)
