view src/llrb/include/stack.h @ 433:d920f3a3f037

Refactoring cuda.c
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Tue, 17 Oct 2017 15:47:33 +0900
parents 12d8e3c8976d
children
line wrap: on
line source

#include <stdlib.h>

typedef struct {
    size_t size;
    int max;
    int num;
    void* data;
} stack, *stack_ptr;

extern stack_ptr stack_init();
extern stack_ptr stack_realloc();
extern void stack_free();
extern int stack_push();
extern int stack_pop();
extern int isMax();
extern int isEmpty();