strncpy man page on DigitalUNIX

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

strncpy(9r)							   strncpy(9r)

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

SYNOPSIS
       char * strncpy(
	       char *s1,
	       char *s2,
	       int n );

ARGUMENTS
       Specifies a pointer to a buffer of  at  least  n	 bytes.	  Specifies  a
       pointer	to a string (an array of characters terminated by a null char‐
       acter).	Specifies the number of characters to be copied.

DESCRIPTION
       The strncpy routine copies string s2 to buffer s1.  The	routine	 stops
       copying	after  it  copies  a null character or n characters, whichever
       comes first.  If the length of s2 as determined by the  null  character
       is less than n, the routine pads s1 with null characters.

RETURN VALUES
       The  strncpy routine returns a pointer to /NULL at the end of the first
       string (or to the location following the last copied character if there
       is  no  NULL).  The  copied  string  will not be null terminated if the
       length of s2 is n characters or more.

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

								   strncpy(9r)
[top]

List of man pages available for DigitalUNIX

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