Skip to content

An implementation of an edit buffer, a data structure used in text editors

Notifications You must be signed in to change notification settings

leonzh2k/EditBuffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EditBuffer

A data structure implemented in C for a class project

Table of Contents

Introduction

In my C class I was tasked to implement an edit buffer. An edit buffer is commonly used in text editors. There were a few data structures I could use to accomplish this task with; I went with a gap buffer.

Setup

On Windows

The-Convenient-But-Not-So-Safe-Way

Simply download EditBufferMain.exe and run. Windows Defender will probably mark the program as a virus; it is not but who is taking risks here?

The-Slightly-Less-Convenient-But-Much-Safer-Way

Download and extract the ZIP. Navigate to its directory and check the source files for malicious code. Compile. You will have to link EditBuffer.c and main.c. Run.

Other Operating Systems

Download and extract the ZIP. Navigate to its directory and check the source files for malicious code. Compile. You will have to link EditBuffer.c and main.c. Run.

Technologies

  • C

Features

  • ASCII based GUI
  • Various options to view status of buffer
  • Buffer automatically resizes as needed
  • Input Validation

What I Learned

  • Structs, Pointers, and Dynamic Memory Allocation

About

An implementation of an edit buffer, a data structure used in text editors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages