BCS is a snippet extension that allows you to write code faster with the help of Shortcuts to usefull functions.
Current Version: v.0.0.1
- C
To install this extension run:
git clone https://github.com/RicAlvesO/BCSnippets.git
sudo ./install.sh
Bellow is a list of all available snippets along with a small description.
Prefix | Description |
---|---|
!init | Base initialisation of C code. |
!arginit | Initialisation of a C program that takes arguments from console. |
!fg | General Function. |
!fgp | General Pointer Funcion. |
!fi | Basic Int function. |
!fip | Basic Int* function. |
!fd | Basic Double function. |
!fdp | Basic Double* function. |
!ff | Basic Float function. |
!ffd | Basic Float* function. |
!fc | Basic Char function. |
!fcp | Basic Char* function. |
!fv | Basic Void function. |
!openf | Basic file opening. |
!getflines | Basic code to read a file line-by-line |
!printi | Basic print for Int values. |
!printd | Basic print for Double and Float values. |
!prints | Basic print for Strings. |
!printa | Basic function to print all elements from an Array. |
Prefix | Description |
---|---|
!qsort | Quick Sort algorithm. |
!isort | Insertion Sort algorithm. |
!msort | Merg Sort algorithm. |
!bsort | Bubble Sort algorithm. |
Prefix | Description |
---|---|
!ll | Basic Linked List structure. |
!all | Function to append a element to a Linked List. |
!ill | Function to insert a element to a given index in a Linked List. |
!rll | Function to remove a element at a given index in a Linked List. |
!cll | Function to create a Linked List. |
!pll | Print Linked List. |
!fll | Function to free memory from Linked List. |
!cll | Complete Linked List w/ functions. |
Prefix | Description |
---|---|
!bt | Basic Binary Tree structure. |
!newbt | Function to create a new BTree. |
!nodebt | Function to create a new BTree Node. |
!insbt | Function to insert a node in a BTree. |
!printprebt | Print a BTree in Pre Order. |
!printposbt | Print a BTree in Post Order. |
!printiobt | Print a BTree In Order. |
!sizebt | Get the size of a BTree. |
!depthbt | Get the depth of a BTree. |
!minbt | Get the Min value of a BTree. |
!maxbt | Get the Max value of a BTree. |
!freebt | Function to free memory from BTree. |
!cbt | Complete BTree w/functions. |