amiws 2.2.1
Loading...
Searching...
No Matches
linked_str_stack.c File Reference

Linked stack of strings implementation. More...

#include <malloc.h>
#include <assert.h>
#include "linked_str_stack.h"
Include dependency graph for linked_str_stack.c:

Functions

LinkedStrStackNodelinked_str_stack_node_create (char *str, size_t len, LinkedStrStackNode *prev)
 
void linked_str_stack_node_destroy (LinkedStrStackNode *node)
 
LinkedStrStacklinked_str_stack_create ()
 
void linked_str_stack_destroy (LinkedStrStack *stack)
 
void linked_str_stack_push (LinkedStrStack *stack, char *str, size_t len)
 
size_t linked_str_stack_peek (LinkedStrStack *stack, char **str)
 
void linked_str_stack_pull (LinkedStrStack *stack)
 

Detailed Description

Linked stack of strings implementation.

amiws – Library with functions for read/create AMI packets Copyright (C) 2017, Stas Kobzar stask.nosp@m.obza.nosp@m.r@mod.nosp@m.ulis.nosp@m..ca

This file is part of amiws.

amiws is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

amiws is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with amiws. If not, see http://www.gnu.org/licenses/.

Author
Kohanis