Design Pattern Examples
Overview of object-oriented design patterns
helpers/split.h
Go to the documentation of this file.
1
5
6#pragma once
7#ifndef __SPLIT_H__
8#define __SPLIT_H__
9
10#include "stringlist.h"
11
16typedef struct SplitList
17{
18 const char** strings;
21
28void SplitList_Clear(SplitList* list);
29
30
41void split(char* s, const char* splitChars, SplitList* components);
42
43#endif // __SPLIT_H__
44
void SplitList_Clear(SplitList *list)
Clear the given SplitList object so it can be reused again. Releases the list of sub-strings (but doe...
Definition: split.c:30
void split(char *s, const char *splitChars, SplitList *components)
Split the given path into multiple strings based on the given delimiter. The pointers to each string ...
Definition: split.c:72
Declaration of the StringList and StringListW typedefs for declaring a vector of strings.
Represents a collection of sub-strings split from a single string using the split() function.
Definition: helpers/split.h:17
size_t strings_count
Number of sub-strings.
Definition: helpers/split.h:19
const char ** strings
Pointers to each sub-string.
Definition: helpers/split.h:18