#define LAZY_IMPL #include "../lazy.h" #include #include int isnotalpha(int x) { return !isalpha(x); } int main() { char *src = "This is a list of words, which apparently has been referred to previously as a sentence"; Lz_Slc s = lz_slc_from_cstr(src); Lz_Slc word; int i = 0; do { lz_slc_split_typ(&s, isnotalpha, &word); printf("Word %d: "LZ_STR_FMT"\n", i, LZ_STR_PRINTF(word)); ++i; } while(s.cnt != 0); return 0; }