Sha256: 202a84fa9ac4d3868c1fd6548d509c234913ff464de0fa9ef56fa8a0c4c80f5f

Contents?: true

Size: 666 Bytes

Versions: 3

Compression:

Stored size: 666 Bytes

Contents

#ifndef YARP_STRING_LIST_H
#define YARP_STRING_LIST_H

#include "yarp/defines.h"
#include "yarp/util/yp_string.h"

#include <stddef.h>
#include <stdlib.h>

typedef struct {
    yp_string_t *strings;
    size_t length;
    size_t capacity;
} yp_string_list_t;

// Initialize a yp_string_list_t with its default values.
YP_EXPORTED_FUNCTION void yp_string_list_init(yp_string_list_t *string_list);

// Append a yp_string_t to the given string list.
void yp_string_list_append(yp_string_list_t *string_list, yp_string_t *string);

// Free the memory associated with the string list.
YP_EXPORTED_FUNCTION void yp_string_list_free(yp_string_list_t *string_list);

#endif

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yarp-0.12.0 include/yarp/util/yp_string_list.h
yarp-0.11.0 include/yarp/util/yp_string_list.h
yarp-0.10.0 include/yarp/util/yp_string_list.h