Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
247 B
2
Indexable
Never
	char input[] = {"* ** *** AAAA XXXXX "};
	int wordStart = 0;
	int length = strlen(input);
	for (int i = 1; i < length; ++i) {
		if (input[i] == ' ') {
			input[i] = '\0';
			printf("%s\n", &input[wordStart]);
			wordStart = i + 1;
		}
	}