radare2/libr/util/t/set0.c
pancake 264f95a40e * Fix build in iOS 4.1 (darwin-arm)
- Honor CFLAGS everywhere
  - Use ut?? instead of uint??_t
* Add build instructions in doc/iphone
* Fix some out-of-range conditionals
2010-11-08 19:30:25 +01:00

19 lines
254 B
C

#include <r_util.h>
void test(const char *s) {
int n;
printf("STR: %s\n", s);
n = r_str_word_count(s);
printf("NUM: %d\n", n);
}
int main() {
test("1");
test("");
test("1 2 3");
test("1,2,3");
test("1, 2, 3");
test(" 1, 2, 3 ");
return 0;
}