View linked-list.c
/* ## (c) 2017, Arkadiusz Drabczyk, arkadiusz@drabczyk.org */
#include <stdio.h>
#include <stdlib.h>
struct node {
int data;
struct node *next;
};
View vb.sh
#!/usr/bin/env sh
# vb.sh: create a new virtualbox machine
#
## (c) 2016, Arkadiusz Drabczyk, arkadiusz@drabczyk.org
if [ "$#" -lt 2 ]
then
echo Usage: "$0" \<MACHINE-NAME\> \<ISO\> [RAM] [DISK] [TYPE]
echo Example:
echo ./vb.sh \"Slackware x64 14.1\" slackware64-14.1-install-dvd.iso
View main.c
#include <stdio.h>
#include <stdlib.h>
/*
Starting at position <position> extract <length> older bits.
Example:
bit number:
7 6 5 4 3 2 1 0 | 15 14 13 12 11 10 9 8 | 23 22 21 20 19 18 17 16
View insertion_sort.c
#include <stdio.h>
#include <stdlib.h>
void print(int arr[], size_t size)
{
unsigned i = 0;
for (; i < size; ++i)
{
printf("%d ", arr[i]);
}
View bubble-sort.c
#include <stdio.h>
#include <stdlib.h>
void bubble(int arr[], size_t size)
{
int i = 0;
int temp;
int again = 1;
int iter = size - 1;
View stack.c
#include <stdio.h>
#include <stdlib.h>
#define _E(msg, args...) \
do{ \
printf( "[ERROR][%s][%d]: ", __FUNCTION__, __LINE__); \
printf( (msg), ##args); \
}while(0)
struct stack