Skip to content
This repository was archived by the owner on Nov 22, 2025. It is now read-only.

brutopolis/bruter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BRUTER

BRUTER is a C header-only library to deal with lists of variables, it is designed to be simple and fast while extremely easy to use and understand.

BRUTER is meant to be 100% C99 compliant;

BRUTER has been discontinued, but checkout its successor: https://github.com/jardimdanificado/urb

Library

BRUTER is a single header file bruter.h, just include and ready to go.

Usage

// can be found at example/simple.c
#include <bruter.h>

int main()
{
  BruterList *list = bruter_new(8);
  BruterInt i = 42;
  bruter_push(list, bruter_value_int(i));
  bruter_unshift(list, bruter_value_float(3.14f));
  bruter_insert(list, 1, bruter_value_pointer(list));
  bruter_push(list, bruter_value_pointer(strdup("Hello, World!")));
  bruter_reverse(list);
  BruterValue v = bruter_pop(list);
  printf("List size: %d\n", list->size);
  printf("Popped value: %f\n", v.f);
  free(bruter_shift(list).s);
  bruter_free(list);
  return 0;
}

About

list-oriented language

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published