⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sony_addrinq.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lintstatic	char sccsid[] = "@(#)sony_addrinq.c 1.1 92/07/30 SMI";#endif not lint/* * Copyright (c) 1989 by Sun Microsystems, Inc. */#include <stdio.h>#include "sony_codes.h"voidsony_addr_inq(device,address)FILE *device;unsigned char address[];{	register int i;	putc(ADDR_INQ,device);	for(i=0; i<5; i++) {		address[i] = sony_read(device);		/*		 * MARK_RETURN can occur at any time ignore it		 */		if(address[i] == MARK_RETURN) {			fprintf(stderr,"sony_addr_inq : ");			fprintf(stderr,"MARK_RETURN returned, ignored\n");			address[i] = sony_read(device);		}		if(address[0] == NAK)			return;	}	/*	 * If it is a CLV disk and no extended time code	 * null out the seconds characters.	 */	if(sony_clv_disk(device)) {		if( (address[3] == '9') && (address[4] = '9') ) {			address[3] = '\0';			address[4] = '\0';		}	}	return;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -