SUBYTE(K) UNIX System V SUBYTE(K)
Name
subyte - stores a character in user data space
Syntax
int
subyte(addr, val)
unsigned char *addr, val;
Description
The subyte routine stores one character in the user's data
space. If you are storing data in u.u_base, consider using
passc(K) in that u.u_count, u.u_offset, and u.u_base are
updated for you, and error handling is provided via
u.u_error. If any chance exists that a -1 may be contained
in the data that you are storing in user space, use
copyout(K) instead of subyte (or passc). A -1 in the data
is usually associated as an error condition.
This routine must not be called from an interrupt or xxinit
routine.
Parameters
The argument addr is a pointer to the byte to be stored in
the user's data space.
The argument val is the value to be stored.
See Also
fubyte(K), fuword(K), suword(K), passc(K)
(printed 7/6/89)