コード例 #1
0
ファイル: p1atest.c プロジェクト: LuigiPomili/MikonOS
/* This function places the specified character string in okbuf and
 *	causes the string to be written out to terminal0 */
void addokbuf(char *strp) {
	char *tstrp = strp;
	
	while ((*mp++ = *strp++) != '\0');
	mp--; 
	
	termprint(tstrp, 0); 
}
コード例 #2
0
ファイル: p1atest.c プロジェクト: LuigiPomili/MikonOS
/* This function places the specified character string in errbuf and
 *	causes the string to be written out to terminal0.  After this is done
 *	the system shuts down with a panic message */
void adderrbuf(char *strp) {

	char *ep = errbuf; 
	char *tstrp = strp;
	
	while ((*ep++ = *strp++) != '\0'); 
	
	termprint(tstrp, 0); 
		
	PANIC();
}
コード例 #3
0
/* This function places the specified character string in errbuf and
 *	causes the string to be written out to terminal0.  After this is done
 *	the system shuts down with a panic message */
void adderrbuf(char *strp) {

	termprint(strp, 0);
		
	PANIC();
}
コード例 #4
0
/* This function places the specified character string in okbuf and
 *	causes the string to be written out to terminal0 */
void addokbuf(char *strp) {

	termprint(strp, 0);
}