MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / createSparklineSequence

Function createSparklineSequence

src/sparkline.cpp:57–62  ·  view source on GitHub ↗

Create a new sequence. */

Source from the content-addressed store, hash-verified

55
56/* Create a new sequence. */
57struct sequence *createSparklineSequence(void) {
58 struct sequence *seq = (sequence*)zmalloc(sizeof(*seq), MALLOC_LOCAL);
59 seq->length = 0;
60 seq->samples = NULL;
61 return seq;
62}
63
64/* Add a new sample into a sequence. */
65void sparklineSequenceAddSample(struct sequence *seq, double value, char *label) {

Callers 1

Calls 1

zmallocFunction · 0.85

Tested by

no test coverage detected