copystr man page on OSF1

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
OSF1 logo
[printable version]

copystr(9r)							   copystr(9r)

NAME
       copystr	-  General:  Copies  a null-terminated character string with a
       specified limit

SYNOPSIS
       int copystr(
	       char *s1,
	       char *s2,
	       u_int maxlength,
	       u_int *ncopiedaddr );

ARGUMENTS
       Specifies a pointer to a string (an array of characters terminated by a
       null character).	 Specifies a pointer to a buffer of at least maxlength
       characters.  Specifies the maximum number of characters to copy.	 Spec‐
       ifies the address of an integer to receive the number of copied charac‐
       ters.

DESCRIPTION
       The copystr routine copies string s1 to the buffer pointed  to  by  s2.
       The  routine  stops  after  copying  a  null character or after copying
       maxlength characters, whichever comes  first.  The  s2  buffer  is  not
       padded with null characters to maxlength.

       The  copystr  routine  returns  the  number of characters copied in the
       location pointed to by ncopiedaddr. Note that the character size	 is  1
       byte.

RETURN VALUES
       Upon  successful completion, copystr returns the value 0 (zero). Other‐
       wise, it can return the following error: The string length, s1, exceeds
       the maximum number of characters, maxlength.

SEE ALSO
       Routines: bcopy(9r), blkclr(9r), ovbcopy(9r), strcpy(9r), strncpy(9r)

								   copystr(9r)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OSF1

List of man pages available for OSF1

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net