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

# stack(3pub)

manipulate stacks

## NAME

stack\_create, stack\_destroy, stack\_pop, stack\_is\_empty, stack\_copy, stack\_push - manipulate stacks

## SYNOPSIS

```
#include <stack.h>
Stack *stack_create(void);
void stack_destroy(Stack *);
void *stack_pop(Stack *);
int stack_is_empty(Stack *);
Stack *stack_copy(Stack *);
int stack_push(Stack *, void *data, size_t bytes);
```

## DESCRIPTION

These functions operate on stacks.  This manual page is shortish.

## SEE ALSO

publib(3)

## AUTHOR

Lars Wirzenius (lars.wirzenius@helsinki.fi)
