static int cmd_d(char *args){ if(args==NULL)return 0; int num_2_delete; sscanf(args , "%d" , &num_2_delete); delete_wp(num_2_delete); return 0; }
static int cmd_d(char *args) { if(args == 0) { delete_all_wp(); return 0; } int no = atoi(args); delete_wp(no); return 0; }
static int cmd_d( char * args ){ int num = atoi( args ); if( !delete_wp( num ) ) printf("Delete Index Error!\n");; return 0; }