int main(void) { int i=30; float f=60; char *s = "abc"; int cnt; cnt = vpf("%d, %f, %s\n",i,f,s); printf("cnt: %d\n",cnt); }
static void free_plugins() { int i; for( i = 0; i < index_ ; i ++ ) free_plugin( index_map_[i]); vpf( illegal_plugins_ ); freeframe_destroy(); frei0r_destroy(); free( index_map_ ); index_ = 0; index_map_ = NULL; }
void vj_midi_reset( void *vv ) { vmidi_t *v = (vmidi_t*)vv; int a = vj_midi_events(vv); if( a > 0 ) { char warn[200]; snprintf(warn,sizeof(warn), "This will clear %d MIDI events, Continue ?",a ); if( prompt_dialog( "MIDI", warn ) == GTK_RESPONSE_REJECT ) return; } char **items = vevo_list_properties(v->vims); if(!items) { vj_msg(VEEJAY_MSG_INFO,"No MIDI events to clear"); return; } int i; for( i = 0; items[i] != NULL ; i ++ ) { dvims_t *d = NULL; if( vevo_property_get( v->vims, items[i],0,&d ) == VEVO_NO_ERROR ) { if(d->msg) free(d->msg); if(d->widget) free(d->widget); free(d); } free(items[i]); } free(items); vpf(v->vims); v->vims = vpn(VEVO_ANONYMOUS_PORT); vj_msg(VEEJAY_MSG_INFO, "Cleared %d MIDI events.",a); }