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

📄 kmap.c

📁 这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易于我们学习和理解
💻 C
字号:
#include	<u.h>#include	<libc.h>#include	<bio.h>#include	<libg.h>#include	"hdr.h"#include	"../kuten208.h"/*	map: put kuten for runes from..to into chars*/voidkmap(int from, int to, long *chars){	long *l, *ll;	int k, k1, n;	for(n = from; n <= to; n++)		chars[n-from] = 0;	for(l = tabkuten208, ll = tabkuten208+KUTEN208MAX; l < ll; l++)		if((*l >= from) && (*l <= to))			chars[*l-from] = l-tabkuten208;	k = 0;	k1 = 0;		/* not necessary; just shuts ken up */	for(n = from; n <= to; n++)		if(chars[n-from] == 0){			k++;			k1 = n;		}	if(k){		fprint(2, "%s: %d/%d chars found (missing include 0x%x=%d)\n", argv0, (to-from+1-k), to-from+1, k1, k1);		/*exits("map problem");/**/	}}

⌨️ 快捷键说明

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