libpw(3) Library Functions Manual libpw(3)NAME
libpw, libPW, Programmers_Workbench_Library - Provides functions for compatibility with existing programs
LIBRARY
Programmers Workbench Library (libPW.a)
DESCRIPTION
The libpw functions are provided for compatibility with existing programs. Their use in new programs is not recommended. Determines
whether string contains character. Determines the offset in string1 of the first character that also occurs in string2. Determines the
offset in string of the first character in the string end that occurs outside of a balanced string as defined by open and close. Concate-
nates the source strings and copies them to destination. Defaults the cleanup routine. Puts the full pathname of the current directory in
string. Determines which directory contains the file p. General purpose error handler. Same as the stdio fdopen() function. Forces a
core dump. Determines if the string pref is an initial substring of string. Determines the offset of the first occurrence in string1 of
string2. Creates a lock file. Returns caller's login name. Copies the first n characters of string1 to string2. Converts string to
integer. Converts string to long. Sets destination to string repeated n times.
Replaces each occurrence of the character old in string with the character new.
Converts string to integer and saves it in *ip. Causes signals to be caught by the setsig1() function.
General purpose signal handling routine.
Gets a pointer to the simple name of full pathname s.
Finds the end of string. Places a substring of string s in destination using the offset origin and length. Copies string s into destina-
tion and replaces any character in old with the corresponding characters in new. Deletes the lock file. Gets the user's login directory.
Defaults user exit routine. Gets the user's login name. Determines the offset in string1 of the first character that is not also in
string2. Allocates memory. Creates a file. Frees memory.
Frees all memory.
Links files. Calls the fatal() function with an appropriate error message. Opens a file. Creates a pipe. Removes a directory entry.
Writes n bytes to the file associated with fd from buffer. Zeros n bytes starting at address p. Replaces the initial blanks with the
character '0' in string s. delim off
libpw(3)
Check Out this Related Man Page
bcopy(3) Library Functions Manual bcopy(3)NAME
bcopy, bcmp, bzero - Perform memory operations
LIBRARY
Standard C Library (libc)
SYNOPSIS
#include <strings.h>
void bcopy(
const void *source,
void *destination,
size_t length);
int bcmp(
const void *string1,
const void *string2,
size_t length);
void bzero(
void *string,
size_t length);
The following function definitions do not conform to current standards and are supported only for backward compatibility:
#include <string.h>
void bcopy(
const char *source,
char *destination,
int length);
int bcmp(
const char *string1,
const char *string2,
int length);
void bzero(
char *string,
int length);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
bcopy(), bcmp(), bzero(): XSH5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Points to the original string for the bcopy() function. Points to the destination string for the bcopy() function. Specifies the byte
string to be compared to the string2 parameter by the bcmp() function. Specifies the byte string to be compared to the string1 parameter
by the bcmp() function. Specifies the length (in bytes) of the string.
DESCRIPTION
The bcopy(), bcmp(), and bzero() functions operate on variable length strings of bytes. Unlike the string functions, they do not check for
null bytes.
The bcopy() function copies the value of the length parameter in bytes from the string in the source parameter to the string in the desti-
nation parameter.
The bcmp() function compares the byte string in the string1 parameter against the byte string of the string2 parameter, returning a 0
(zero) value if the two strings are identical and a nonzero value otherwise.
The bzero() function nulls the string in the string parameter, for the value of the length parameter in bytes.
NOTES
[Tru64 UNIX] The bcopy() function is similar to the memcpy() function except that the first two parameters are reversed.
RELATED INFORMATION
Functions: memccpy(3), memcpy(3), string(3), swab(3)
Standards: standards(5) delim off
bcopy(3)