Skip to content

SimonaytesYan/Stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stack

Implementation of a stack in C with two types of protection for different data structures.

Using other type of elements

To specify the data type you are using, use

typedef *data_type* Elem;

Using protection

#define PROTECTION_LEVEL

This define responsible for enabling/disabling protection:

  • First bit of PROTECTION_LEVEL is 1 - enable canary protection
  • First bit of PROTECTION_LEVEL is 0 - disable canary protection
  • Second bit of PROTECTION_LEVEL is 1 - enable hash protection
  • Second bit of PROTECTION_LEVEL is 0 - disable hash protection

Logging

Use

#define LOGS_TO_FILE

If you want to put logs to file with name

const char LOGS

If you want to put logs to console use

#define LOGS_TO_CONSOLE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published