Created
July 13, 2011 20:41
-
-
Save FurryHead/1081270 to your computer and use it in GitHub Desktop.
C split/join functions, using strtok_r -- Header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SPLIT_JOIN_H | |
#define SPLIT_JOIN_H | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
int str_split(const char *src, const char* delim, char*** dest); | |
char *str_join(char** items, int num_items, const char* delim); | |
#ifdef __cplusplus | |
} | |
#endif | |
#endif /* SPLIT_JOIN_H */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment