Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

programmers_workbench_library(3) [osf1 man page]

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

SSAStringCpy(3SNMP)					      SNMP Library Functions					       SSAStringCpy(3SNMP)

NAME
SSAStringCpy, SSAStringInit, SSAStringToChar, SSAStringZero - Sun Solstice Enterprise Agent string helper functions SYNOPSIS
cc [ flag ... ] file ... -lssasnmp [ library .. ] #include <impl.h> void *SSAStringZero(String *string); int SSAStringInit(String *string, uchar_t *chars, int len, char *error_label); int SSAStringCpy(String *string1, String *string2, char *error_label); char *SSAStringToChar(String string); DESCRIPTION
The SSAStringCpy() function makes a deep copy of string2 to string1. This function assumes that string1 has been processed by the SSAS- tringZero() function. Memory is allocated inside the string1 and the contents of string2, not just the pointer, is copied to the string1. If an error is encountered, an error message is stored in the error_label buffer. The SSAStringInit() function copies the char array from chars to the string instance with the specified length len. This function assumes that the string instance has been processed by the SSAStringZero() function or no memory is allocated inside the string instance. If an error is encountered, an error message is stored in the error_label buffer. The SSAStringToChar() function returns a temporary char array buffer for printing purposes. The SSAStringZero() function frees the memory inside of the String instance, but not the string object itself. RETURN VALUES
The SSAStringInit() and SSAStringCpy() functions return 0 if successful and -1 if error. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) SunOS 5.10 17 Dec 1996 SSAStringCpy(3SNMP)
Man Page