Skip to content

pottsorken/C-Help-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

This repository is created to store some of the functions and programmes I have made in courses in university. It is to act as a helping hand when I face similar problems to those I have already dealt with.

How to use

Just copy and paste the desired functions into any C based project!

Alternatively, clone the repository and include it at the beginning of your C-program using: #include "relative/path/to/included/file"

Content

  • timekeeping.h - For benchmarking
    • long nano_seconds(struct timespec *t_start, struct timespec *t_stop)
  • stack.h - For creating and handling a stack
    • typedef struct stack
    • stack *new_stack(int size)
    • void push(stack *stk, int val)
    • void push_dynamic(stack *stk, int val)
    • int pop(stack *stk)
    • int pop_dynamic(stack *stk)

About

This repository is created to store some of the functions and programmes I have made in courses in university. It is to act as a helping hand when I face similar problems to those I have already dealt with.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages