Skip to content
Snippets Groups Projects

Added init function

Merged alec.schmidt requested to merge stack_init into main
1 unresolved thread

Issue : Init/create function

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
stack.c 0 → 100644
1 #include "stack.h"
2 #include <assert.h>
3 #include <stdio.h>
4 #include <stdlib.h>
5
6 #define DEFAULT_CAPACITY 4
7
8 void stack_init(stack *s)
9 {
10 assert(s->data!=NULL && "Error : stack already in memory");
  • alec.schmidt added 1 commit

    added 1 commit

    Compare with previous version

  • Also if you could merge with main and correct conflicts this would help me.

  • alec.schmidt added 2 commits

    added 2 commits

    • 1ccc0ef1 - 1 commit from branch main
    • 44bc139f - Merge branch 'main' into 'stack_init'

    Compare with previous version

  • mentioned in commit 6aab0548

  • Please register or sign in to reply
    Loading