DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SCO OpenServer

fubyte(D3oddi)


fubyte -- get a character from user data space

Synopsis

int fubyte(unsigned char *src);

Description

The fubyte routine retrieves (fetches) one character from the user's data space.

Arguments


src
address in the user's data from which to copy the byte.

Return values

The value of the retrieved byte is returned. If -1 is received, then an error occurred and u.u_error should be set to EFAULT. Note that fubyte( ) can cause a page fault.

Usage

If you are fetching data from u.u_base, consider using the cpass(D3oddi) function which updates the u.u_count, u.u_offset, and u.u_base members for you and provides error handling through u.u_error.

Context and synchronization

User context.

Hardware applicability

All

Version applicability

oddi: 1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp

SVR5 DDI compatibility

This function is not supported in DDI. Replace calls to fubyte( ) with calls to copyin(D3).

References

copyin(D3oddi), cpass(D3oddi), fuword(D3oddi)

``Data, copying'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 5 HDK - June 2005