Loading...
Searching...
No Matches
tuple_read.h
Go to the documentation of this file.
1
15#pragma once
16#include <pebble.h>
17
22
34int32_t tuple_int_or(const Tuple *tuple, int32_t fallback);
35
44const char *tuple_str_or(const Tuple *tuple, const char *fallback);
45
int32_t tuple_int_or(const Tuple *tuple, int32_t fallback)
Reads an int tuple, whatever width the phone sent it at.
Definition tuple_read.c:11
const char * tuple_str_or(const Tuple *tuple, const char *fallback)
Reads a cstring tuple, or the fallback when it is not one that can be read.
Definition tuple_read.c:22