You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
265 B

#include <xinu.h>
void change_proc_name( char *name)
{
struct procent *prptr; /* pointer to proc. table entry */
int i;
prptr = &proctab[currpid];
prptr->prname[PNMLEN-1] = NULLCH;
for (i=0 ; i<PNMLEN-1 && (prptr->prname[i]=name[i])!=NULLCH; i++)
;
}