// Sesión 2: Stack con un arreglo que crece. Escriban las funciones según stack.h.
#include "stack.h"

#include <stdlib.h>

#define FIRST_CAPACITY 4

struct stack {
    int *values;
    int size;
    int capacity;
};

Stack *stack_new(void) {
    // Escriban aquí su código.
    return NULL;
}

void stack_free(Stack *stack) {
    (void) stack;  // borren estas líneas cuando usen los parámetros
    // Escriban aquí su código.
}

int stack_push(Stack *stack, int value) {
    (void) stack;
    (void) value;
    // Escriban aquí su código.
    return 0;
}

int stack_pop(Stack *stack, int *value) {
    (void) stack;
    (void) value;
    // Escriban aquí su código.
    return 0;
}

int stack_peek(const Stack *stack, int *value) {
    (void) stack;
    (void) value;
    // Escriban aquí su código.
    return 0;
}

int stack_size(const Stack *stack) {
    (void) stack;
    // Escriban aquí su código.
    return 0;
}
