TIP: Click on subject to list as thread! ANSI
echo: public_domain
to: All
from: andrew clarke
date: 1996-03-25 15:00:32
subject: stack.h

/*
 *  STACK.H - Stack management functions.
 *  Written 1995,96 by Andrew Clarke and released to the public domain.
 */

#ifndef __STACK_H__
#define __STACK_H__

typedef struct stacknode {
    struct stacknode *p_prev;
    void *p_item;
} STACKNODE;

typedef struct {
    STACKNODE *p_top;
    unsigned long items;
} STACK;

void stackDefaults(STACK * p_stack);
void stackInit(STACK * p_stack);
void stackTerm(STACK * p_stack);
int stackPushItem(STACK * p_stack, void *p_item);
void *stackPopItem(STACK * p_stack);
unsigned long stackTotalItems(STACK * p_stack);
int stackIsEmpty(STACK * p_stack);

#endif

--- Msgedsq/2 3.30
* Origin: This one HAS to be original X (3:635/727.4{at}fidonet)
SEEN-BY: 50/99 78/0 635/309 503 544 727 640/230 711/401 410 413 430 808 809
SEEN-BY: 711/934 712/610 713/888 800/1 7877/2809
@PATH: 635/727 544 50/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.