#include<stdio.h>
#include<stdlib.h>

#define INIT_SZ  2

struct stack {
   int size;
   int cap;
   int * data;
};

void print_stack(const struct stack * s);

void push(struct stack * s, int data);

int pop(struct stack * s);

void print_stack(const struct stack * s);

void empty_stack(const struct stack * s);

int pop_n(struct stack * s,int n);

