DataMuseum.dk

Presents historical artifacts from the history of:

Commodore CBM-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Commodore CBM-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦38307e582⟧ TextFile

    Length: 609 (0x261)
    Types: TextFile
    Notes: UNIX file
    Names: »jl14.c«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦2d53db1df⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »hr/src/jlib/jl14.c« 

TextFile

#include	<jlib.h>

extern	int	myfd;
extern	struct	jqueue	sendq,
			runq,
			s_replyq;

int	G_Char(wid, c)
int	wid;
char	c;
{
	MsgReceiver = SMGR;
	MsgCmd   = SM_CHAR;
	MsgWid   = wid;
	MsgBytL0 = c;
	sendmess( );
	return(0);
}
 
int	G_Str(wid, s, slen)
int	wid;
char	*s;
char	slen;
{
	MsgReceiver = SMGR;
	MsgCmd   = SM_STRING;
	MsgWid   = wid;
	MsgBytL0 = slen;
	MsgPtr   = s;
	sendmess( );
	jdoze(&s_replyq);
	Msg = runq.jq_head->j_m; /* currently we are at the head of runq */
	if(MsgWid != wid)
		warn("M_Str: mismatched wid");
	if(MsgPtr != s)
		warn("M_Str: mismatched buffer pointer");
	return(0);
}