A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jwerle/strsplit.h below:

jwerle/strsplit.c: Split a string into a char array by a given delimiter

size_t size = strsplit(char *str, char **parts, char *delimiter);
#include "strsplit.h"

int
main (void) {
	char str[] = "hello\nworld";
	char *parts[2];
	size_t size = strsplit(str, parts, "\n");
	int i = 0;
	for (; i < size; ++i) {
		printf("%s\n", parts[i]);
	}

	return 0;
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4