mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-12 15:38:09 +00:00
264f95a40e
- Honor CFLAGS everywhere - Use ut?? instead of uint??_t * Add build instructions in doc/iphone * Fix some out-of-range conditionals
19 lines
254 B
C
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;
|
|
}
|