cpcmd(cp_command, cp_response, sizeof(cp_response)); 
cpcmd(cp_command, cp_response, sizeof(cp_response), NULL); 
vmlogrdr_get_recording_class_AB(void) {	char cp_command[]="QUERY COMMAND RECORDING ";	char cp_response[80];	char *tail;	int len,i;	printk (KERN_DEBUG "vmlogrdr: query command: %s\n", cp_command);	cpcmd(cp_command, cp_response, sizeof(cp_response));	printk (KERN_DEBUG "vmlogrdr: response: %s", cp_response);	len = strnlen(cp_response,sizeof(cp_response));	// now the parsing	tail=strnchr(cp_response,len,'=');	if (!tail)		return 0;	tail++;	if (!strncmp("ANY",tail,3))		return 1;	if (!strncmp("NONE",tail,4))		return 0;	/*	 * expect comma separated list of classes here, if one of them	 * is A or B return 1 otherwise 0	 */        for (i=tail-cp_response; i<len; i++)		if ( cp_response[i]=='A' || cp_response[i]=='B' )			return 1;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/6b979de395c7e1b7e59f74a870e1d1911853eccb/vmlogrdr.c/buggy/drivers/s390/char/vmlogrdr.c