delorie.com/djgpp/doc/libc/libc_750.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

stpncpy

Syntax

 
#include <string.h>

char *stpncpy(char *_dest, const char *_src, size_t _n);

Description

Copies exactly _n characters from _src to _dest. If need be, _dest is padded with zeros to make _n characters. Like strncpy (see section strncpy), but return value different.

Return Value

Returns a pointer to the character following the last nonzero written.

Portability

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004