Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

libpw(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

trbsd(1)						      General Commands Manual							  trbsd(1)

NAME
trbsd - Translates characters SYNOPSIS
trbsd [-Acs] string1 string2 trbsd -d [-Ac] string1 The trbsd command copies characters from the standard input to the standard output with substitution or deletion of selected characters. OPTIONS
Translates on a byte-by-byte basis. When you specify this option, trbsd does not support extended characters. Complements (inverts) the set of characters in string1 with respect to the universe of characters whose codes are 001 through 377 octal if you specify -A, and all characters if you do not specify -A. Deletes all characters in string1 from output. Changes characters that are repeated output charac- ters in string2 into single characters. DESCRIPTION
Input characters from string1 are replaced with the corresponding characters in string2. The trbsd command cannot handle an ASCII NUL (00) in string1 or string2; it always deletes NUL from the input. The tr command is a System V compatible version of trbsd. Abbreviations such as a-z, standing for a string of characters whose ASCII codes run from character a to character z, inclusive, can be used to introduce ranges of characters. Note that brackets are not special characters. Use the escape character (backslash) to remove the special meaning from any character in a string. Use the followed by 1, 2, or 3 octal digits for the code of a character. If a given character appears more than once in string1, the character in string2 corresponding to its last appearance in string1 will be used in the translation. EXAMPLES
To translate braces into parentheses, enter: trbsd '{}' '()' <textfile >newfile This translates each { (left brace) to a ( (left parenthesis) and each } (right brace) to a ) (right parenthesis). All other char- acters remain unchanged. To translate lowercase ASCII characters to uppercase, enter: trbsd a-z A-Z <textfile >newfile The two strings can be of different lengths: trbsd 0-9 # <textfile >newfile This translates each digit to a # (number sign); if string2 is too short, it is padded to the length of string1 by duplicating its last character. To translate each string of digits to a single # (number sign), enter: trbsd -s 0-9 # <textfile >newfile To trans- late all ASCII characters that are not specified, enter: trbsd -c ' -~' 'A-_' <textfile >newfile This translates each nonprinting ASCII character to the corresponding control key letter (01 translates to A, 02 to B, and so on). ASCII DEL (177), the character that follows ~ (tilde), translates to a ? (question mark). SEE ALSO
Commands: ed(1), sh(1), tr(1) Files: ascii(5) trbsd(1)
Man Page