#include #include int main (int argc, char**argv) { int i, count; printf("Bug test\n"); eci_init(); /* BAD: uncommenting the following line produces corrupt output */ eci_command("int-cmd-list"); eci_command("int-cmd-list"); printf("last_type: %s\n", eci_last_type()); count = eci_last_string_list_count(); printf("count: %d\n", count); for (i = 0; i < count; i++) { //printf("%d: <%s>\n", i, eci_last_string_list_item(i)); printf("%s\n", eci_last_string_list_item(i)); } return 1; } /* gcc bug.c -o bug `libecasoundc-config --cflags --libs` && ./bug | perl -nle 'print if /[^\w\-\?]/' */