Skip to content
This repository has been archived by the owner on Nov 7, 2020. It is now read-only.

smallstoneapps/linked-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linked List Build Status npm (scoped) MIT License

A simple linked list implementation for Pebble apps and watchfaces.

Installation

You must be using Pebble SDK 3.12 or newer to use this library.

To install the package to your app, use the pebble tool:

pebble package install @smallstoneapps/linked-list

Usage

// This is not a complete example, but should demonstrate the basic usage of
// the Linked List library.

#include <@smallstoneapps/linked-list/linked-list.h>

LinkedRoot* root;

static void init(void) {
  root = linked_list_create_root();
  linked_list_append(root, data);
  printf("%d", linked_list_count(root));
}

static void deinit(void) {
  linked_list_clear(root);
  destroy(root);
}

Tests

Unit tests for Data Processor exist in the tests folder.

To run the tests:

make test

Releases

No releases published

Packages

No packages published

Languages